[TxMt] New project with current file?

Hans-Jörg Bibiko bibiko at eva.mpg.de
Thu Apr 17 20:02:48 UTC 2008


On 17.04.2008, at 21:21, Kevin Horton wrote:

> If I have a single file open, is there an easy way to create a new  
> project with an existing file + the current file?  I was hoping to  
> find a menu item, or key combination that will give a file dialog  
> to select new file(s) that would be added to a new project that  
> includes the current file.

Try this tmCommand:

if [ ! -z "$TM_FILEPATH" ]; then
	mate "$TM_FILEPATH" 'PATH/TO/YOUR/OTHER/FILE' untitled
fi

The 'untitled' name forces mate to open a project even if you don't  
have 'PATH/TO/YOUR/OTHER/FILE'.

Cheers,

--Hans



More information about the textmate mailing list