On 2009-Mar-1, at 1:39 PM, Robert J. Carr wrote:
I'm working on a command that I'd like to be able to apply to all files in my project. Looking at the env vars I only see items for working with the current file. Is there any way to get a list of all files in the current project?
It depends on what language you're writing the command with, but if it were a shell script for example, you could get a list of all files in the project with:
find $TM_PROJECT_DIRECTORY
It is certainly possible this sort of thing is available somewhere in the shared support ... how do I get more info about what's there?
Not sure, short of exploring the directory manually, but you can always see what variables are set by running the "Show TM_* Variables" command in the "Bundle Development" bundle. Maybe you already knew that.