Hi
I am just trying out TextMate and have been impressed, however I am a bit confused by the folding. The main problem comes when I click on the arrow for a fold opening (down arrow), it simply folds to the next fold closing (up arrow). If a new fold opening occured in the middle then it ignores this.
From looking at the lists and so on I think this might have something to do with indentation, however I am using latex, which it is not natural to indent.
best wishes
Edmund
------------------------------------------------------------------------ ------------ Problems worthy Edmund Harriss of attack Queen Mary, University of London prove their worth edmund.harriss@mathematicians.org.uk by hitting back. http://www.mathematicians.org.uk/eoh
Piet Hein 1905-1996 ------------------------------------------------------------------------ ------------
On Mar 4, 2005, at 16:55, Edmund Harriss wrote:
From looking at the lists and so on I think this might have something to do with indentation, however I am using latex, which it is not natural to indent.
Yes, the problem is that the fold start marker is paired with the first fold stop marker that has the same indent -- so for non-indented languages (like latex) it's not very useful, at least not if you want to fold nested structures (folding patterns should probably be set to only match elements that doesn't nest, like only entire sections or only item lists).
I do however plan to lift this current limitation, but it's not that simple, because initially the indent requirement was actually introduced to solve the problem with languages where the end token can appear in contexts where it isn't marking the end of a fold.