[TxMt] Simple command assist

Saul Rosenbaum lists at visualchutzpah.com
Fri Nov 16 11:49:12 UTC 2007


I have a very simple command

names=( $TM_SELECTED_TEXT )
for name in ${names[@]}
do
    touch $TM_DIRECTORY/$name.php
done

basically you select a list of text

about
policies
hours
contact_us

and it generates a php page for each item in the current directory -  
it does that well enough, what would be truly excellent (and I think  
this is easy) is to gather all those pages into a scratch project - I  
actually have a laundry list of things I'd like it to do (all likely  
pretty easy IMHO) but I really don't want to seem greedy - I  
appreciate the effort everyone on this list puts out on a daily basis..



saul - visualchutzpah.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20071116/e36ad41f/attachment.html>


More information about the textmate mailing list