Bram Moolenaar, 17.12.2008:
> > > I think we don't need the foldcolumn in HTML.  One can click on the fold
> > > to open it, and on the text to close it again.  That's a lot simpler and
> > > removes the not-so-nice-looking fold column.
> > 
> > How do you solve the ambiguity problem when there are two folds starting
> > on the same line without the foldcolumn though (i.e. whether a click
> > should open the second fold or close the first)? If they can appear
> > beside each other in the foldcolumn, as in the prototype, that solves
> > that problem quite nicely. I think.
> 
> The same way it works for nested structures: first click opens the first
> level, second click the second level, etc.
> 
> For closing you would have to click on the text of the opened fold, not
> a closed fold at the start of that fold.

Imagine the scenario that a fold contains 2 folds and doesn't contain
other unfolded text anymore.

For example, a file with several lines: lines 1-2 are folded on the
second level, lines 3-4 are folded on the second level and lines 1-4 are
folded on the first level.

When fold 1-4 is open it cannot be closed with za (which is equivalent
to a left mouse click) anymore.

To reproduce with Vim: zfjjzfjzfk
displayed with foldcolumn=3:
-- line 1
|| line 2
|- line 2
|| line 4

Without a foldcolumn, there is also no hint, whether some text belongs
to an open fold or not.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui