When I'm writting ruby code, I stumbled across Cmd-/, which comments/uncomments out the selected blocked of code.
Where are all these hidden key-binding documented? It's not in the KeyBinding.dict that shipped with 1.1b17.
If I try to comment out the whole function below, it'd instead uncomment the existing comment within the block. I'd rather have Cmd-/ always do comment-out, and Cmd-Option-/ always do the uncomment. Can I override the key-binding for the default comment/uncomment behavior?
def foobar # comment inside function body do_something end
Thanks for all your hard work. Chris
On 02/10/2005, at 0.15, Chris Wong wrote:
When I'm writting ruby code, I stumbled across Cmd-/, which comments/uncomments out the selected blocked of code. Where are all these hidden key-binding documented? It's not in the KeyBinding.dict that shipped with 1.1b17.
No, this is a command from the Source bundle, so you can find it in Automation -> Run Command -> Source -> Toggle comment. There is currently no way to tell you where a command/snippet/macro belonging to a given key resides.
The keybindings file only covers stuff that is internal to TextMate, but this is simple an add-on command like all the others.
-- Sune.
On Oct 1, 2005, at 3:25 PM, Sune Foldager wrote:
On 02/10/2005, at 0.15, Chris Wong wrote:
When I'm writting ruby code, I stumbled across Cmd-/, which comments/uncomments out the selected blocked of code. Where are all these hidden key-binding documented? It's not in the KeyBinding.dict that shipped with 1.1b17.
No, this is a command from the Source bundle, so you can find it in Automation -> Run Command -> Source -> Toggle comment. There is currently no way to tell you where a command/snippet/macro belonging to a given key resides.
Thanks. Is there any way to easily dump all the key bindings so I can print out a cheat sheet next to my keyboard? Also, is there any way to customize the default key-binding for commands like Uppercase, Lowercase, Captilize, and Opposite Case? I find it hard to memorize which combination of Option, Cmd, and Ctrl keys to press with U to get Lowercase... :-)
-- Chris
The keybindings file only covers stuff that is internal to TextMate, but this is simple an add-on command like all the others.
-- Sune.
Never mind... I found the key-binding in the KeyBinding.info file inside TextMate's app folder. Should have read the FAQ before asking this question... Sorry for the SPAM.
Chris
When I'm writting ruby code, I stumbled across Cmd-/, which comments/uncomments out the selected blocked of code. Where are all these hidden key-binding documented? It's not in the KeyBinding.dict that shipped with 1.1b17.
No, this is a command from the Source bundle, so you can find it in Automation -> Run Command -> Source -> Toggle comment. There is currently no way to tell you where a command/snippet/macro belonging to a given key resides.
Thanks. Is there any way to easily dump all the key bindings so I can print out a cheat sheet next to my keyboard? Also, is there any way to customize the default key-binding for commands like Uppercase, Lowercase, Captilize, and Opposite Case? I find it hard to memorize which combination of Option, Cmd, and Ctrl keys to press with U to get Lowercase... :-)
-- Chris
The keybindings file only covers stuff that is internal to TextMate, but this is simple an add-on command like all the others.
-- Sune.
On 02/10/2005, at 8.31, Chris Wong wrote:
Never mind... I found the key-binding in the KeyBinding.info file inside TextMate's app folder. Should have read the FAQ before asking this question... Sorry for the SPAM.
If you're worried about spam, then next time don't quote the last month worth of mail below your two-line reply (like in mail I am replying to here), which in itself is perfectly fine of course ;-). The prefered style is
relevant previous content
your answer or comments
more relevant previous content
more answers or comments
etc.
-- Sune.
On 02/10/2005, at 7.58, Chris Wong wrote:
Thanks. Is there any way to easily dump all the key bindings so I can print out a cheat sheet next to my keyboard?
You can see all key bindings for bundle items (the so called “add ons”) using Run Command -> Language Definitions [1] -> Show Keyboard Shortcuts. But there's _a lot_.
[1] In recent builds this bundle is named TextMate.