"Joachim Lous" <[EMAIL PROTECTED]> writes: > On Thu, Mar 6, 2008 at 4:09 PM, Randy Kramer <[EMAIL PROTECTED]> wrote: >> If you place the cursor within the remaining unfolded text (the >> header in HTML), it should behave "normally" (e.g., you should be >> able to edit that text). > > It would be nice, but if the criteria for possible folding blocks are > continuously reevaluated, you might thereby remove the justification > for the block. So you suddenly have a folded block that does not > follow the folding scheme (exploding it the second the mode no longer > recognises it as foldable would certainly be confusing). Not sure that > that is a problem, though.
I think this isn't a problem if we consider the fold as a state object. Then, that state is maintained regardless of the context which first entered it into that state, until something is done to change the state of that object. In BBEdit, removing the contextual justification for a fold leaves the fold intact, and it can be manipulated as a unit, but then double clicking on the fold opens it up normally. >> Did you ask, but what about the similar situation for a selection totally >> within a folded area? > > No, but that's a good point. I would argue as above. Yeah, I am liking the idea of extending the selection more and more as these issues pop-up. >> > * If using multiple panes, folding state is per-pane, right? >> >> Interesting question. Certainly folding state is per document. > > Split-pane shares the same document. A particularly useful > application of folding would be a collapsed overview mode in one pane > and a "working" view in the other. Might even weigh more than folding > persistence to some. Now this *is* interesting. In addition to this, if we had a macro command that would allow us to expand or collapse something in a given pane, then we could map these to keystrokes which would allow us to create our own little "bookmarks" type thing. On the other hand, some might argue that folding is not the right job for this, but an actual bookmarks systme is better. -- Aaron Hsu <[EMAIL PROTECTED]> | Jabber: [EMAIL PROTECTED] ``Government is the great fiction through which everybody endeavors to live at the expense of everybody else.'' - Frederic Bastiat -- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
