ER: Add "paste" and "paste current line" commands to Copy mode
Copy mode is great, but I often find myself doing the same thing: selecting a few lines up and pasting it on the command line.
I suggest we add a couple of commands to copy mode to save keystrokes on common patterns:
paste current selection (and end copy mode).
Currently, one has to type e.g. y
(or Ctrl-k
) then Cmd-v
to do this.
This involves two keystrokes (and more than that, these two keystrokes are different in nature: one is vi/emacs style, the other is Mac/Cocoa style).
This could be simplified into e.g. p
(vi-mode), Ctrl-y
(emacs-mode) or alt-enter
(cocoa-style, matching the Cmd-f search/paste).
paste full line at cursor (and end copy mode).
Currently, one has to type e.g. V
then y
then Cmd-v
to do this.
This involves three keystrokes with two different styles of shortcuts (vi-style and Cocoa-style).
This could be simplified into one shortcut. Either something like P
(upper-case p
, vi-mode), or something like shift-alt-enter
(Cocoa-style).
If we go for a cocoa-style shortcut like shift-alt-enter
, we could also apply that to "paste full line at cursor in Cmd-f search" which would also be a great new feature (but that should be the subject of a different ticket).