Thanks, Michael. I was thinking about writing such a macro, but i wasn't satisfied that I couldn't make it process the whole document. This one stops after the first 18 foldings (running it again doesn't work since it starts with a select all command). But I changed it to remove the select all command and so forth so that it is repeatable now. The modified version is attached.
(It would also be nice if you could instruct TM to continue running a macro as long as a search command or other action (such as moving down when you're already at the end of the document) didn't fail.)
Thanks again! -Brad
On May 20, 2007, at 12:35 AM, Michael Sheets wrote:
On May 20, 2007, at 1:29 AM, Brad Choate wrote:
Again this is very tedious, especially for a large diff. I would be very happy if someone found a way to automate this process. Ideally, it should be possible to describe a folding marker whose end is identified by the start of a new fold, but I don't think it's possible today.
Your right it is impossible with the current folding system. We'll have to wait and see if 2.0 changes that. :)
For now this macro should do it:
<Fold Diff Documents.tmMacro.zip>
It beeps some at the end because I had to make it folded a lot of documents, but that appears to be the only downside. ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate