Quoting Randy Kramer <[EMAIL PROTECTED]>:

> Anyway, I'm generally asking two questions:
>
>    * are we willing to consider such more drastic backend changes in order
> to support folding?
Keep the text in the buffer together: no splits. It limits various
possibilities rather than creating opportunities, IMO. Using a variation of
the mechanism of position maintenance used by rangesets is the way to go. The
text widget would just skip over the defined collapsed ranges (perhaps
replacing them with a symbol of sorts).

>    * and, if so, what comments do you have on this (half-baked) proposal?

The single buffer, apart from being the way things are done just now, allows
for easy searching. This is fundamental for syntax highlighting. You'd have
much more complicated searching if you have to switch from buffer to buffer.
Having the text (almost) contiguous helps a lot. I think Joachim was the one
who offered an initial reaction. I agree with his position. Let folding be a
pure construct of visualisation, with no impact on the document's content.

Also, I think it's not a good idea to base your folding strategy on the way
things are done in Word. It may match HTML, but not all situations. It's also
line-based and I agree with Aaron that we should try to provide collapsing of
any area, within lines, complete lines and lines with partial lines at either
end.

> Randy Kramer
>
>
> --
> NEdit Develop mailing list - [email protected]
> http://www.nedit.org/mailman/listinfo/develop
>


-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to