[SVN] Bundle commit 257

Allan Odgaard allan at macromates.com
Sun Feb 13 23:57:44 UTC 2005


On Feb 13, 2005, at 22:32, Brad Miller wrote:

> Here's an example of a crazy idea I came up with, inspired by Eric's 
> simple question: What is the Todo bundle for.  I created a simple 
> command called help. that just echoes a bit of documentation to an 
> html window.

Ah, a very nice idea, especially since it requires no work on my part! 
:)

> I'm sure there is a better way to use perl or ruby to output a bunch 
> of text like this so you don't have to worry about the using a single 
> quote breaking my simple use of the echo command.

I changed it to using cat with a heredoc, that should solve the 
problem. In case you do not know these, you basically do:

command <<[-]delimiter
...
delimiter

And command will be executed with “...” as stdin.

If you add - it'll remove indent from the lines, and if you quote 
delimiter, it won't do normal expansion on the lines, like $VARIABLES 
(so sort of I should have done that in the Help command :) ).




More information about the textmate-dev mailing list