Is there a way to use avy or a similar in-buffer selection tool to quickly select a word or line to paste at the current point?
For the following buffer an example workflow for proposed functionality would be:
line 1 - reallyLongSymbol
line 2 - bravo
line 3 - <POINT_HERE>
- At line 3, realize I want to paste
reallyLongSymbol
at the current point. M-x avy-select-word-and-paste
(made-up)- Press the key combo that corresponds to
reallyLongSymbol
reallyLongSymbol
is inserted at POINT.
The buffer is now as follows:
line 1 - reallyLongSymbol
line 2 - bravo
line 3 - reallyLongSymbol<POINT_HERE>
Ideally, this would work for other targets like lines and urls.