[SVN] Bundle commit 257
Brad Miller
bonelake at mac.com
Mon Feb 14 00:14:00 UTC 2005
Thanks,
I had seen that sort of thing in Perl before but did not realize it
also worked with cat.
It also occurred to me that one could just write a help.html file,
store it in the bundle and simply have the command cat said html.
The Lucida Grande style is a nice touch too.
Brad
On Feb 13, 2005, at 5:57 PM, Allan Odgaard wrote:
> 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 :) ).
>
> _______________________________________________
> textmate-dev mailing list
> textmate-dev at lists.macromates.com
> http://lists.macromates.com/mailman/listinfo/textmate-dev
>
Brad Miller, PhD
Assistant Professor
Luther College
http://www.cs.luther.edu/~bmiller
jabber: bnmnetp at jabber.org
More information about the textmate-dev
mailing list