[TxMt] Re: Regular expression for current file name without extension
Allan Odgaard
mailinglist at textmate.org
Wed May 20 09:40:08 UTC 2009
On 8 May 2009, at 00:50, Jan Jakob Bornheim wrote:
> I use TextMate mainly for LaTex editing.
>
> [...] by using this simple syntax:
>
> texMate.py bibtex 1
>
> However, simply adding .rsp.aux after the 1 does not work. So I guess
> what I am looking for is a command or regular expression that would do
> the following: get the name of the current master file without
> extension, and add the extension .rsp.aux to this name. Maybe that is
> very simpe question I am asking but I promise you that I duly
> researched the mailing list and could not find an answer.
The real question is probably how to get the master file for a
project. If you have set the TM_LATEX_MASTER variable that is easy, as
you can just use "$TM_LATEX_MASTER" in your command, and "$
{TM_LATEX_MASTER%.*}.rsp.aux" to cut the current extension and add
your custom extension.
More information about the textmate
mailing list