With the holidays fast approaching and people drifting away from their desks to do far more entertaining things than write code all day, I though this was an appropriate time to:
a) wish everyone a very happy Christmas time, if they celebrate the festival or not ;)
b) offer my thanks again to Allan for providing us with such a great product. I spend all day, every day working with TextMate and it's the first time I've actually felt 'at home' coding on the Mac since switching last January.
That's all really :)
drew.
Greetings,
I've been experimenting a little with the macro recording feature, and one thing I'd find rather useful would be to include a search in it. Is this not yet possible?
The idea is that one would search for the next instance of a certain word, and then base the rest of the macro off of the location of that word. This is good, for example, for reformatting bbl (bibtex) files in ways that are not supported natively.
Thanks, David
On Dec 23, 2004, at 1:15, David Wooten wrote:
I've been experimenting a little with the macro recording feature, and one thing I'd find rather useful would be to include a search in it. Is this not yet possible?
That is possible. You can either use the find next/previous actions to find what's on the find clipboard (when the macro is replayed), or you can use the find window to find a specific string (with specific find options), which is then independent of the contents of the find clipboard, when the macro is replayed.
The idea is that one would search for the next instance of a certain word, and then base the rest of the macro off of the location of that word. This is good, for example, for reformatting bbl (bibtex) files in ways that are not supported natively.
When I need a macro which 'starts' its action after a certain string, I often have the last action in the macro do the find. That way, I can replay the macro repeatedly, until I hear a beep, which indicates that there are no more blocks of text that needs to be worked upon (i.e. the last find of the last macro replayed fails).
For a somewhat finer twist on this, is it possible to pass a variable (e.g. $TM_SELECTED_TEXT) to the Find clipboard?
This would be a way to achieve a "find the next instance of X" in a macro, which would be a different X in each text block. Perhaps there is already a way to do this which I haven't found.
Many thanks, D. Wooten
On Dec 23, 2004, at 1:03 AM, Allan Odgaard wrote:
On Dec 23, 2004, at 1:15, David Wooten wrote:
I've been experimenting a little with the macro recording feature, and one thing I'd find rather useful would be to include a search in it. Is this not yet possible?
That is possible. You can either use the find next/previous actions to find what's on the find clipboard (when the macro is replayed), or you can use the find window to find a specific string (with specific find options), which is then independent of the contents of the find clipboard, when the macro is replayed.
The idea is that one would search for the next instance of a certain word, and then base the rest of the macro off of the location of that word. This is good, for example, for reformatting bbl (bibtex) files in ways that are not supported natively.
When I need a macro which 'starts' its action after a certain string, I often have the last action in the macro do the find. That way, I can replay the macro repeatedly, until I hear a beep, which indicates that there are no more blocks of text that needs to be worked upon (i.e. the last find of the last macro replayed fails).
Sorry to wrap up the topic with a dumb e-mail, but I just want to say "wow". TextMate is fantastic. Thanks again.
David
On Dec 27, 2004, at 3:28 AM, Allan Odgaard wrote:
On Dec 27, 2004, at 2:43, David Wooten wrote:
For a somewhat finer twist on this, is it possible to pass a variable (e.g. $TM_SELECTED_TEXT) to the Find clipboard?
You can use “Edit -> Find -> Use Selection for Find” (cmd-E).
David, pwease don't create a new mail by replying to an existing one. Messes up threading as often pointed out by Allan and myself.
On 22 Dec 2004, at 23:37, Drew McLellan wrote:
a) wish everyone a very happy Christmas time, if they celebrate the festival or not ;)
ditto!
b) offer my thanks again to Allan for providing us with such a great product. I spend all day, every day working with TextMate and it's the first time I've actually felt 'at home' coding on the Mac...
Ditto to that one as well.
Kind regards,
Mats
On Dec 23, 2004, at 0:37, Drew McLellan wrote:
b) offer my thanks again to Allan for providing us with such a great product. [...]
Let me take the opportunity to send back a thank you to all who have helped out with support on this mailing list, maintained the wiki, written about TextMate on their blog, usenet, other mailing lists or similar, sent positive feedback and/or suggestions for future versions, spent time making visual mockups and new icons, created useful bundles, given it good ratings & reviews at VersionTracker/MacUpdate a.s.o.
And of course a big thank you to all who have registered. Hopefully TextMate can be my main income in 2005, which should lead to many improvements and new features, as I am anything but low on ideas :)
Perhaps a bit melodramatic when speaking of a text editor, but let me anyway quote Arthur C Clarke:
The one fact about the future of which we can be certain is that it will be utterly fantastic!
So keep up the good work submitting your ideas, augmenting TextMate with user customization and spreading the word, and I'll do my best to make it yet another reason to make the switch to Mac! :)
Happy holidays to those who have them!
Kind regards Allan
Allan Odgaard allan@macromates.com wrote:
The one fact about the future of which we can be certain is that it will be utterly fantastic!
"Predictions are difficult, especially about the future" Niels Bohr ;-)