Hello,
I am experimenting with the use of Sphinx/reST as an electronic laboratory notebook. I already use the restructuredText bundle for visualizing the reST syntax within Textmate. I am wondering if there is an automated way to run Sphinx's "make html" command on all .rst files in a Textmate Project from within Textmate? In other words, I would like to not be forced to switch out to the command line to update my "notebook".
Upon writing this, I realize that my question now boils down to: can one assign a keystroke to a command that will operate on the top-level of a project directory?
I apologize if this is a terribly noob question.
Aaron
On 20 May 2010, at 17:52, Aaron Quinlan wrote:
[...] Upon writing this, I realize that my question now boils down to: can one assign a keystroke to a command that will operate on the top- level of a project directory?
Yes, create a new command¹ with something like:
make -C "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}" html
There is however a Make bundle which assigns ⌘B to “make” (default goal) and ⌥⌘B to show a pop-up of goals in your make file: http://github.com/textmate/make.tmbundle
Thank you Allan, I apologize for missing this very helpful tutorial. This works brilliantly.
Aaron On May 28, 2010, at 8:35 AM, Allan Odgaard wrote:
On 20 May 2010, at 17:52, Aaron Quinlan wrote:
[...] Upon writing this, I realize that my question now boils down to: can one assign a keystroke to a command that will operate on the top-level of a project directory?
Yes, create a new command¹ with something like:
make -C "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}" html
There is however a Make bundle which assigns ⌘B to “make” (default goal) and ⌥⌘B to show a pop-up of goals in your make file: http://github.com/textmate/make.tmbundle
¹ http://manual.macromates.com/en/commands
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate