Hi everybody,
I have very simple question being rather new to textmate:
How do I change the key binding of command-r from "compile xcode project" to "run the makefile in the parent directory"? Any help would be appreciated...
Greetings, Nick
On Jul 29, 2008, at 12:06 PM, Nikolaus Binder wrote:
Hi everybody,
I have very simple question being rather new to textmate:
How do I change the key binding of command-r from "compile xcode project" to "run the makefile in the parent directory"? Any help would be appreciated...
Open the Bundle Editor. (Bundles > Bundle Editor > Show Bundle Editor). Find the Compile Xcode Project command in the tree view. Change the shortcut to something else. That should be enough.
Hi Alex,
thank you for your help... I already found that but am a bit stuck exactly at that point... it doesn't find make... thought someone had a small script as this is nothing too special.
Thank you anyway, Nick
Am 29.07.2008 um 12:38 schrieb Alex Ross:
On Jul 29, 2008, at 12:06 PM, Nikolaus Binder wrote:
Hi everybody,
I have very simple question being rather new to textmate:
How do I change the key binding of command-r from "compile xcode project" to "run the makefile in the parent directory"? Any help would be appreciated...
Open the Bundle Editor. (Bundles > Bundle Editor > Show Bundle Editor). Find the Compile Xcode Project command in the tree view. Change the shortcut to something else. That should be enough.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Jul 29, 2008, at 12:43 PM, Nikolaus Binder wrote:
Hi Alex,
thank you for your help... I already found that but am a bit stuck exactly at that point... it doesn't find make... thought someone had a small script as this is nothing too special.
Ah, I thought there was already a command to run the makefile but it seems that there isn't.
You can easily create a command to do this. Create a new command with contents:
echo "<html><body><pre>" cd $(basename $TM_FILEPATH) make echo "</pre></body></html>
Set Input: None, Output: Show as HTML and bind the command to CMD+R.
Hi Alex, hi all,
I am using this one:
cd $TM_PROJECT_DIRECTORY /usr/bin/make
Which works fine, one last question: Is it possible to do something like "build and run", meaning: make and then run it? Does anybody have an idea how this could be achieved? Right now I am running the program through the makefile which is not a good solution. (Am I the only one to use gcc/make instead of an xcode project?)
Thank you very much for your help so far, Nick
Am 29.07.2008 um 13:28 schrieb Alex Ross:
On Jul 29, 2008, at 12:43 PM, Nikolaus Binder wrote:
Hi Alex,
thank you for your help... I already found that but am a bit stuck exactly at that point... it doesn't find make... thought someone had a small script as this is nothing too special.
Ah, I thought there was already a command to run the makefile but it seems that there isn't.
You can easily create a command to do this. Create a new command with contents:
echo "<html><body><pre>" cd $(basename $TM_FILEPATH) make echo "</pre></body></html>
Set Input: None, Output: Show as HTML and bind the command to CMD+R.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On Jul 29, 2008, at 6:09 PM, Nikolaus Binder wrote:
Hi Alex, hi all,
I am using this one:
cd $TM_PROJECT_DIRECTORY /usr/bin/make
Which works fine, one last question: Is it possible to do something like "build and run", meaning: make and then run it? Does anybody have an idea how this could be achieved? Right now I am running the program through the makefile which is not a good solution. (Am I the only one to use gcc/make instead of an xcode project?)
Sure, just use whatever code you would normally use to run your program after you call make. The TextMate command is just simple script and you can do whatever you like.