The "folding away ugly docstrings" makes me wonder, would it be possible wire up a command that folds elements in the document based on their scope?
It's a bit different than folding on their nesting level, but I think can be pretty handy. Especially for things like (ugly) docstrings :-)
Consider it a future feature request if it can't currently be done.
Thanks, -steve
On 12/02/2007, at 5:04 PM, Steve Lianoglou wrote:
The "folding away ugly docstrings" makes me wonder, would it be possible wire up a command that folds elements in the document based on their scope?
It's a bit different than folding on their nesting level, but I think can be pretty handy. Especially for things like (ugly) docstrings :-)
Consider it a future feature request if it can't currently be done.
Would this mean that I could potentially fold all the pod in my perl scripts? If so, I'll second that request.
- LD.
Steve Lianoglou <lists@...> writes:
The "folding away ugly docstrings" makes me wonder, would it be possible wire up a command that folds elements in the document based on their scope?
It's a bit different than folding on their nesting level, but I think can be pretty handy. Especially for things like (ugly) docstrings
Consider it a future feature request if it can't currently be done.
I'm not sure you could make one now, but Allan has said that TextMate 2's folding system will be more scope-based than the current system.
Incidentally, it's likely not impossible to add docstring folding to the folding patterns of whatever language you're using, even in the current TextMate.
-Jacob
I'm not sure you could make one now, but Allan has said that TextMate 2's folding system will be more scope-based than the current system.
Ah nice ... I missed that post, thanks.
Incidentally, it's likely not impossible to add docstring folding to the folding patterns of whatever language you're using, even in the current TextMate.
Yeah .. I was still kind of referring to Python. There are start/stop fold markers based on """, but they get hosed when you put a whitespace line between paragraphs in the docstring (since it matches the tail folding marker based on the indentation level I reckon).
Previously I put just one space on blank lines so as to not have it fold there, but it gets kind of tedious to keep up and adhere to when more than just myself are fiddling on the same codebase.
-steve