Was hoping there was an environment variable to get a list of the open tabs in a project. Is this possible?
Thanks!
Joe
On 21 Nov 2011, at 20:15, Joseph Ferraro wrote:
Was hoping there was an environment variable to get a list of the open tabs in a project. Is this possible?
What is the use-case for this?
It is not something which presently exists and not something I really feel should be added because “open tabs” is a bit undefined, like what about untitled documents? Multiple windows? What if we add split views? etc.
Instead I recommend that commands which work on multiple files use TM_SELECTED_FILES (files selected in drawer).
here's the case for being able to get a list of open tabs in a project:
i'm writing a bundle that allows you to pull down local source code from a Salesforce.com org, edit the source, and compile in the cloud. if a user edits multiple source files, i'd rather them be able to compile the files they have open in tabs instead of having to compile the entire project.
On Nov 22, 2011, at 12:59 PM, Allan Odgaard wrote:
On 21 Nov 2011, at 20:15, Joseph Ferraro wrote:
Was hoping there was an environment variable to get a list of the open tabs in a project. Is this possible?
What is the use-case for this?
It is not something which presently exists and not something I really feel should be added because “open tabs” is a bit undefined, like what about untitled documents? Multiple windows? What if we add split views? etc.
Instead I recommend that commands which work on multiple files use TM_SELECTED_FILES (files selected in drawer).
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 22 Nov 2011, at 20:07, Joseph Ferraro wrote:
here's the case for being able to get a list of open tabs in a project:
i'm writing a bundle that allows you to pull down local source code from a Salesforce.com org, edit the source, and compile in the cloud. if a user edits multiple source files, i'd rather them be able to compile the files they have open in tabs instead of having to compile the entire project.
How about storing the file’s time stamp when fetching it and comparing time stamps when the user requests to “compile” his project? Then you’d also avoid rebuilding unchanged (but open) files.