[TxMt] Keybindings

Rune Hansen rune.hansen at mac.com
Sun Nov 20 16:05:07 UTC 2005


On 20. nov. 2005, at 16.40, Allan Odgaard wrote:

> On 18/11/2005, at 14:11, Rune Hansen wrote:
>
>> Until then,  I've created the DefaultKeyBinding.dict file (and It  
>> works) but I can't for the life of me find how to issue a "undo"  
>> command.
>>
>> I really "need" to bind $^- to "undo".
>
> With the US key map, that'd be:
>
>     "^_" = "undo:";
>
> You generally only specify shift ($) for function keys. For normal  
> keys use the character produced by pressing shift + key.
>
>> I also "need" to rebind (rather than unlearn) crtl-s to save and  
>> possibly disalble ctrl-x in the process. Can anyone help me with  
>> this?
>
> The ctrl-S key is bound in the key bindings file inside the  
> TextMate.app bundle (which takes precedence over the one in ~/ 
> Library). So you need to copy this one:
>
> cp /Applications/TextMate.app/Contents/Resources/KeyBindings.dict ~/ 
> Library/Application\ Support/TextMate
>
> Then edit the version in ~/Library/Application\ Support/TextMate  
> (which takes precedence over the default), changing:
>       "^s" = "ISIM_incrementalSearch:";
> into: "^s" = "saveDocument:";
>
> And it should work. TextMate doesn't do anything on ctrl-X AFAIK.

Hi Allan,
Thanks for your reply.  Unfortunately "^_" = "undo:"; causes TextMate  
to crash when the undo buffer(?) is empty.
I've enclosed the system generated error report.

regards
/rune

"Never attribute to malice what can be adequately explained by
incompetence"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20051120/466e8e2e/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: TextMateError.txt
URL: <http://lists.macromates.com/textmate/attachments/20051120/466e8e2e/attachment.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20051120/466e8e2e/attachment-0001.html>


More information about the textmate mailing list