Rather than using just the *current* file as the source for completions, I'd like to expand that a bit and make TextMate search all currently open files for word completions.
I've searched around a bit, and I am aware of the standard completions / completionCommand usage. However, it seems that there is no way of getting the list of currently open documents in to the shell. Is that the case?
TM_SELECTED_FILES appears to be pretty close, but it only works on "selected" files within the project. Is the list of shell variables in the manual a comprehensive list? I'm hoping there's a secret something that I've missed :)
Regards,
Duane Johnson (canadaduane) http://blog.inquirylabs.com/
TM_SELECTED_FILES appears to be pretty close, but it only works on "selected" files within the project. Is the list of shell variables in the manual a comprehensive list? I'm hoping there's a secret something that I've missed :)
Well there is TM_PROJECT_DIRECTORY or TM_DIRECTORY. Neither is quite perfect, but might work in some cases.
http://www.macromates.com/textmate/manual/ environment_variables#dynamic_variables
Perhaps we'll get a more relevant variable as the project window is redone in the coming months.