Hello, Currently, apple-left takes me to the end of the line. I'd like to change it so apple-comma takes me there. That way I don't have to search for the arrow keys. How can I find where this is defined? Generally, when I want to change a key command, how can I track it down without searching manually through every bundle? thanks, -Morgan
From: Morgan Packard Sent: Wednesday, March 03, 2010 12:40 PM To: textmate@lists.macromates.com Subject: [TxMt] How can I find where a snippet/macro/command is defined?
Hello, Currently, apple-left takes me to the end of the line. I'd like to change it so apple-comma takes me there. That way I don't have to search for the arrow keys. How can I find where this is defined? Generally, when I want to change a key command, how can I track it down without searching manually through every bundle? thanks, -Morgan
Command-Left isn't defined by a bundle, it's part of the app itself. You can create a macro, though, that does the same thing, and assign a shortcut for that. So, command-Left would still exist, but you can supplement it with Command-Comma.
Do this: Choose Bundles > Macros > Start Recording Press Command-Left Choose Bundles > Macros > Stop Recording Choose Bundles > Macros > Save Recording... In the Bundle Editor, type Command-Comma in the "Activation: Key Equivalent" area. Close the Bundle Editor, and you should have your shortcut.
It's probably possible to write a plugin to change the Command-Left to something else, but that's beyond me. Hans seems to enjoy those challenges, though...
+dru
Cool. Thanks a lot! -m-
On Wed, Mar 3, 2010 at 2:00 PM, Dru Kepple dru@summitprojects.com wrote:
From: Morgan Packard Sent: Wednesday, March 03, 2010 12:40 PM To: textmate@lists.macromates.com Subject: [TxMt] How can I find where a snippet/macro/command is defined?
Hello, Currently, apple-left takes me to the end of the line. I'd like to change it so apple-comma takes me there. That way I don't have to search for the arrow keys. How can I find where this is defined? Generally, when I want to change a key command, how can I track it down without searching manually through every bundle? thanks, -Morgan
Command-Left isn't defined by a bundle, it's part of the app itself. You can create a macro, though, that does the same thing, and assign a shortcut for that. So, command-Left would still exist, but you can supplement it with Command-Comma.
Do this: Choose Bundles > Macros > Start Recording Press Command-Left Choose Bundles > Macros > Stop Recording Choose Bundles > Macros > Save Recording... In the Bundle Editor, type Command-Comma in the "Activation: Key Equivalent" area. Close the Bundle Editor, and you should have your shortcut.
It's probably possible to write a plugin to change the Command-Left to something else, but that's beyond me. Hans seems to enjoy those challenges, though...
+dru
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-----Original Message----- From: Morgan Packard Sent: Wednesday, March 03, 2010 12:40 PM To: textmate@lists.macromates.com Subject: [TxMt] How can I find where a snippet/macro/command is defined?
Generally, when I want to change a key command, how can I track it down without searching manually through every bundle? thanks, -Morgan
Sorry, forgot to answer the more general question: to find a given bundle itme, usually the quickest thing to do is hit Control-Shift-T, and start typing what you suspect the name is, and find it in the list. Alternatively, you can go to the Help menu's search feature, and do something similar, although you'll be searching everything in the menu system.
As a more extreme approach, you might be able to open up TM's support folder as a TM project (in a TM document, type
mate "~/Library/Application Support/TextMate"
And press Control-R)
And do a Find in Project for terms that are involved in your search...a more intimate knowledge of the way bundles work is going to be helpful to get something out this kind of search, but at this level you can actually search key equivalents and source code of the snippets/commands themselves...by the way, a search of "@" (which is the way TM write Command-Left in the bundle stuff) reveals nothing in my bundle files, at least.
So, good things to know for a hardcore TextMate user.
+dru
On Wed, Mar 3, 2010 at 1:11 PM, Dru Kepple dru@summitprojects.com wrote:
-----Original Message----- From: Morgan Packard Sent: Wednesday, March 03, 2010 12:40 PM To: textmate@lists.macromates.com Subject: [TxMt] How can I find where a snippet/macro/command is defined?
Generally, when I want to change a key command, how can I track it down without searching manually through every bundle? thanks, -Morgan
Sorry, forgot to answer the more general question: to find a given bundle itme, usually the quickest thing to do is hit Control-Shift-T, and start typing what you suspect the name is, and find it in the list. Alternatively, you can go to the Help menu's search feature, and do something similar, although you'll be searching everything in the menu system.
If you already know the key combo when you hit Control-Shift-T click on the magnifying glass and select "Key equivalent" then type the key combo. This way you don't have to grep through the bundle the hardcore way.
HTH
Peter
As a more extreme approach, you might be able to open up TM's support folder as a TM project (in a TM document, type
mate "~/Library/Application Support/TextMate"
And press Control-R)
And do a Find in Project for terms that are involved in your search...a more intimate knowledge of the way bundles work is going to be helpful to get something out this kind of search, but at this level you can actually search key equivalents and source code of the snippets/commands themselves...by the way, a search of "@" (which is the way TM write Command-Left in the bundle stuff) reveals nothing in my bundle files, at least.
So, good things to know for a hardcore TextMate user.
+dru
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-----Original Message----- From: textmate-bounces+dru=summitprojects.com@lists.macromates.com [mailto:textmate-bounces+dru=summitprojects.com@lists.macromates.com] On Behalf Of Peter Cowan Sent: Wednesday, March 03, 2010 2:33 PM To: TextMate users Subject: [TxMt] Re: How can I find where a snippet/macro/command is defined?
If you already know the key combo when you hit Control-Shift-T click on the magnifying glass and select "Key equivalent" then type the key combo. This way you don't have to grep through the bundle the hardcore way.
Heh...didn't know that one. I like being hardcore, but I also like easy.
On Mar 3, 2010, at 5:32 PM, Peter Cowan wrote:
If you already know the key combo when you hit Control-Shift-T click on the magnifying glass and select "Key equivalent" then type the key combo. This way you don't have to grep through the bundle the hardcore way.
And don’t forget ⌃⌥⌘K to show all keyboard shortcuts (and tab triggers) from the bundles. If you don’t see something listed there, it’s either defined in TextMate itself, or system-wide.
Hello, Currently, apple-left takes me to the end of the line. I'd like to change it so apple-comma takes me there. That way I don't have to search for the arrow keys. How can I find where this is defined? Generally, when I want to change a key command, how can I track it down without searching manually through every bundle? thanks, -Morgan
Command-Left isn't defined by a bundle, it's part of the app itself.
You can change this OS-wide with the Cocoa Text System. See here. http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html
—Alex
War offline. Jetzt solltest du sie haben. In getrennter Post
On Mar 3, 2010, at 10:15 PM, Alex Ross wrote:
Hello, Currently, apple-left takes me to the end of the line. I'd like to change it so apple-comma takes me there. That way I don't have to search for the arrow keys. How can I find where this is defined? Generally, when I want to change a key command, how can I track it down without searching manually through every bundle? thanks, -Morgan
Command-Left isn't defined by a bundle, it's part of the app itself.
You can change this OS-wide with the Cocoa Text System. See here. http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html
—Alex
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- Erich Neuwirth Didactic Center for Computer Science and Institute for Scientific Computing University of Vienna