[TxMt] Keybindings
    Allan Odgaard 
    throw-away-1 at macromates.com
       
    Sun Nov 20 15:40:44 UTC 2005
    
    
  
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.
> btw. TextMate is great. Bought a license to day.
Thanks! :)
    
    
More information about the textmate
mailing list