Re:ITerm 2
by bostonvaulter2 on Sunday January 23, 2011 @05:26AM
(#2132188)
You should use ctrl-a instead. Then you don't need to take your hands away fr the main part of the keyboard
Re:ITerm 2
by GeneralMaximus on Sunday January 23, 2011 @12:49PM
(#2132887)
Also, C-A, C-E, C-K, C-F, C-B, C-P, C-N, C-Y and a few other readline keybindings work in all standard Cocoa text controls.
Yes, this is wonderful. Recently, I've been using emacs as my primary editor and because of muscle memory accidentally used the movement commands in, e.g. composing a new email in Gmail. It worked! C-a (beginning of line), C-e (end of line), C-n (down a line), C-p (up a line) in particular are especially useful. I just used C-p and C-n in composing this comment.
C-k / C-y is weird in Gmail, though. Anyone know why? Try replying to an email, C-k'ing a line, going to the top, and C-y. I can't make heads or tails of the gibberish that ensues!
Movements, like you describe, are left up to the application you're interacting with. This is not a job for a terminal!
The terminal just needs to communicate the keys pressed.
ie: beginning of line -> command + left arrow.
I realize that people are probably used to it, but personally I like minimizing the difference between any context switches I have to make.
Maybe there is an option somewhere I can't yet find.