[TxMt] TM2 and KeyBindings

82 views
Skip to first unread message

Brian Powell

unread,
Dec 18, 2011, 4:51:46 AM12/18/11
to text...@lists.macromates.com
With TM2, it doesn't seem to honor my KeyBindings like 1.5 did, specifically, my emacs-like settings.

For instance, ^v and meta-v do not pageup/down as is specified in my DefaultKeyBinding.dict file. Another, ^k will delete the text on the line, but ^k on an empty line will not remove that line (this is particularly annoying because the only way to remove a line is select and delete it). Furthermore, I used to use ^w and ^y for yanking and putting text, but these don't seem to work any longer.

Anyone else seeing behavior like this? Is there something I am missing? I haven't changed my DefaultKeyBindings, and the behavior is fine in other Cocoa apps and TM1.5.

For now, I will assume it is just an alpha bug...

Thanks,
Brian

_______________________________________________
textmate mailing list
text...@lists.macromates.com
http://lists.macromates.com/listinfo/textmate

A J

unread,
Dec 20, 2011, 5:46:12 PM12/20/11
to TextMate users
I'm seeing the same-- and would also be interested in having these
keybindings work-- they're so ingrained in my brain that I'm having
trouble using the alpha (though I should add that I love many things
about it).

Adam Strzelecki

unread,
Dec 23, 2011, 1:23:44 PM12/23/11
to TextMate users
For those who miss PageDown/Up in TM2 here's simple workaround to put into ~/Library/KeyBindings/DefaultKeyBinding.dict
Instead of:

"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";

Which triggers "pageUp/Down:" selectors that do not respond in TM2, put:

"\UF72C" = ("moveUp:", ..., "moveUp:");
"\UF72D" = ("moveDown:", ..., "moveDown:");

Where ... means = put it as many times as many lines you want to jump on page up/down.

Have a nice Xmas,
--
Adam Strzelecki

Trevor Harmon

unread,
Dec 23, 2011, 9:06:51 PM12/23/11
to TextMate users
On Dec 23, 2011, at 10:23 AM, Adam Strzelecki wrote:

> For those who miss PageDown/Up in TM2

There have been several posts about the Page Up/Down keys not working in TextMate 2, but they have always worked for me. I press Fn-Up/Down on my laptop and the page goes up/down. Am I missing something?

Trevor

Adam Strzelecki

unread,
Dec 27, 2011, 3:12:35 PM12/27/11
to TextMate users
> There have been several posts about the Page Up/Down keys not working in TextMate 2, but they have always worked for me. I press Fn-Up/Down on my laptop and the page goes up/down. Am I missing something?

Yeah, but if you try to do Opt+Page Up/Down which is supposed to move page together with caret or Shift+Page Up/Down which is supposed to extend selection by whole page it doesn't work in TM2, while it works perfectly well in TM1, and also in Xcode, TextEdit, etc.

Also some users (including me) has mapped regular (non Opt-ed) Page Up/Downs using DefaultKeybindings.dict to move caret as if Opt was pressed, some others mapped Emacs style keys. While it works perfectly well in TM1 it doesn't work in TM2.

All because selectors these actions are mapped to pageUp: pageDown: pageUpAndModifySelection: pageDownAndModifySelection: selectors (OSX class standard calls) which are defined for TextMate editor but have no effect upon a call (NYI I guess), in contrary to TM1 where these selectors move cared (or caret with selection) by one line.

Altogether these are pretty useful keys when you work with long files and you use keyboard only, that's why this workaround.

Regards,
--
Adam Strzelecki

Reply all
Reply to author
Forward
0 new messages