← Back to team overview

zim-wiki team mailing list archive

Re: Bounty for folding

 

In-reply-to: <CA+TmwMFGkTmJyB2Y2-hog_NmMtCs6z5ACipZRR1D6rc2EP2e8Q@xxxxxxxxxxxxxx>


Hello Jaap, and J.A. de Vries -

I'd like to follow up on adding folding to Zim. Have yet to find this
listed on the Wiki, as mentioned below.

Has there been any progress, and/or is there still interest in this feature?

Thanks!
Marc Paul Rubin
(jayseye)

---

From: "J.A. de Vries" <hdv.jadev@xxxxxxxxx>
Date: Thu, 24 May 2012 14:10:59 +0200

Hi Jaap,

> Maybe you could set up a small page on the dev wiki here:
> http://www.zim-wiki.org/wiki/doku.php . Please specify criteria that
> the plugin needs fulfill in order to claim the bounty, and how to
> contact you to claim it etc.

Will do that. Might take a couple of days due to work.

> I can link the wiki page from the main website.
>
> To give a first shot on the technical impact: looks like gtksourceview
> can support marks in the window margin, which could be used to trigger
> fold/unfold. Also it looks like next release of gtksourceview will
> have a special API for folding.

That would be great. It should make things a whole lot easier to
implement and maintain.

> So either we need to make zim's editor inherit from gtksourceview and
> build on that API, or emulate the relevant code to enable similar
> features in zim.

I don't know the inner workings of zim too well, but if the first option
could provide the functionality I need, then I'd suggest the first
alternative. The more generic the code the better in my experience.

> Main challenge is to get the folding marks (icons) in the marging and
> keep them uptodate. The hiding of a piece of text is almost trivial.
> Adding some widget / keybinding to fold/unfold all up to a certain
> level needs some design but is probably easy to implement as well.

Glad to hear that!

I'll try to make some time this weekend to write down the specs for what
I would like to have.

P.S. I am willing to sponsor other bounties as well, if you want me to.
Just contact me if I can help.

Grx HdV


References

    Bounty for folding
    From: J.A. de Vries, 2012-05-19
    Re: Bounty for folding
    From: Jaap Karssenberg, 2012-05-22


Follow ups