[TxMt Plugins] Re: tracking the filename of the currently selected tab
Niko Matsakis
niko at alum.mit.edu
Fri Jan 29 07:43:48 UTC 2010
> id target = [NSApp targetForAction:@selector(allEnvironmentVariables)];
> NSString* filepath = [[target allEnvironmentVariables] objectForKey:@"TM_FILEPATH"];
>
> You can test it if you do:
> NSLog(@"TM env:\n%@", [[target allEnvironmentVariables] description]);
Ok, thanks. I will give it a spin. Before responding I had tried it out briefly using F-Script and it didn't seem to be working, but that must be because the current window was the F-script console! It does indeed work from my plugin.
regards,
Niko
More information about the textmate-plugins
mailing list