← Back to team overview

zim-wiki team mailing list archive

Re: Bounty for folding

 

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