I just downloaded TextMate and am pretty happy with it. Since it is a Cocoa app, all of the standard MacOSX key bindings come with it! I've used emacs as a text editor for years and can't break away from the basic editing commands.
I created my own TextMate keybinding file, as noted in the help section, and resolved an issue with '^f' not being bound to 'move cursor forward'. The only other thing that I can't seem to figure out is '^y'. When used with '^k' I should be able to 'kill' to the end of a line, then 'yank' that text out of the kill ring. It's a quick and dirty cut-and-paste option that's very much ingrained. I can't find any key bindings that override this behavior, but it doesn't seem to work.
Any ideas?
Thaddeus
I too am having a problem getting ^y as "yank" to work. It seems like the solution is supposed to be to follow the help instructions and copy TextMate.app/Contents/Resources/KeyBindings.dict to ~/Library/Application Support/TextMate/KeyBindings.dict and adjust to taste.
So, in this case, you'd add a line:
"^y" = "yank:";
However, there seems to be a problem because that's not working. All other key changes to this file work, so I'm pretty sure that the yank operation is being bound.
I think that for some reason ^d, which is bound to deleteToEndOfLine is not actually adding things to the kill buffer.
According to Apple's documentation at http://tinyurl.com/5b77u, all the delete* commands are supposed to add the deleted text to the kill buffer for yank to pop out.
Is it possible that adding to the kill buffer is somehow broken in TextMate?
Also interesting, the system default for ^k seems to be 'deleteToEndOfParagraph' instead of 'deleteToEndOfLine' as TextMate sets it. If I set it back to 'deleteToEndOfParagraph' it behaves differently then other Cocoa apps. It kills a lot more text ... seemingly all text to the next newline.
That sort of makes sense to me, because that's a paragraph by my definition. But the problem is 'deleteToEndOfLine' doesn't behave the way ^k does in other Cocoa apps. It kills a line, but once the line is blank, a second application won't also kill the blank line, as is usual. So, I don't know if Cocoa apps bind ^k to something else, or if 'deleteToEndOfParagraph' is working differently in TextMate than other Cocoa apps.
Any ideas from anyone or comments from the developers?
Thanks very much.
I am told (by Allan) that TextMate currently doesn't support a kill buffer such as used with yank. Instead is has a built in clipboard-history with hotkeys from moving back and forth etc.
Alternatively, do the following to record a macro which mirrors kill:
Automation -> Start Macro Recording, cmd-shift-arrow right, cmd-x, Automation -> Stop Macro Recording, Automation -> Save Scratch Macro... as ctrl k.
In the future, a kill buffer may be implemented, also to allow macros to not disturb the clipboard.