A common use-case that I have is to add a string to the same position of each line of text.
For example, I might start with
which I want to transform into
What I currently do is:
- place my cursor after
C-nto extend the zero-width rectangle down one row
- (look up the keystrokes and then) press
C-x r t Value <RET>to invoke
string-rectangle, thereby adding the string
Valueto the desired locations
I would like to simply start typing after selecting a rectangle with
rectangle-mark-mode, and the rectangular selection would be interactively replaced with what I'm typing (including the case where I've marked a zero-width rectangle). In other words, I want to eliminate the
C-x r t step above and just start typing
Value immediately. How can I accomplish this?
I'm also curious why this isn't the default behavior of Emacs, since I can't think of a disadvantage to this approach.