Since I updated to Textmate 2 I have a problem with folding code: whenever I unfold a piece of code (by clicking on the triangle), the code unfolds but the triangle disappears. This way I need to highlight the section and click fold again, instead of just clicking the triangle again to fold it. This was not the case under Textmate 1 and led to me never using Textmate 2 as it's such a crucial functionality for me. I hope you can tell me what I may be doing wrong or resolve it if it's a bug! Thanks, Samuel
On 21 Jan 2014, at 1:33, Samuel Schumacher wrote:
Since I updated to Textmate 2 I have a problem with folding code: whenever I unfold a piece of code (by clicking on the triangle), the code unfolds but the triangle disappears. This way I need to highlight the section and click fold again, instead of just clicking the triangle again to fold it […]
If there is a pattern to what you are folding then you should setup the folding patterns so that you always get the arrows (by default) rather than having to select and fold “manually”.
If there is no pattern to what you are folding, then you’re currently out of luck, as custom foldings are dropped once unfolded. TextMate 1.x may have remembered them until the file was closed (or line with a marker is edited). It probably wouldn’t be that much of an effort to re-introduce the feature, though you’re the first to bring up the changed behavior.
remembering a custom fold would be nice. which makes me think that within-a-line folds would be wonderful.
For markup languages, it would be great to be able to fold, say, all the links down to just their display text.
t
On 26 Jan 2014, at 2:16 PM, Allan Odgaard mailinglist@textmate.org wrote:
On 21 Jan 2014, at 1:33, Samuel Schumacher wrote:
Since I updated to Textmate 2 I have a problem with folding code: whenever I unfold a piece of code (by clicking on the triangle), the code unfolds but the triangle disappears. This way I need to highlight the section and click fold again, instead of just clicking the triangle again to fold it […]
If there is a pattern to what you are folding then you should setup the folding patterns so that you always get the arrows (by default) rather than having to select and fold “manually”.
If there is no pattern to what you are folding, then you’re currently out of luck, as custom foldings are dropped once unfolded. TextMate 1.x may have remembered them until the file was closed (or line with a marker is edited). It probably wouldn’t be that much of an effort to re-introduce the feature, though you’re the first to bring up the changed behavior.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate