Select and copy to last caret position
posti opened this issue · comments
Is your feature request related to a problem? Please describe.
On thing i find myself using a lot, is using target mode to copy a string or value and inserting it at the previous caret position.
Currently this requires two jumps plus Ctrl+c, Ctrl+v. Using four shortcuts feels a bit clumsy.
Describe the solution you'd like
A new mode which initially behaves like target mode, but copies the selected value and inserts it at the current caret position.
Similarly, a mode which copies a targeted line to the current caret position.
Describe alternatives you've considered
I have not found any other Intellij plugins or features which would provide this functionality.
As an alternative workflow, you can try to use the Navigate → Back
action (⌘[
default shortcut on macOS) after jumping and copying the text. That will position the caret to where it was before the jump, so you can paste. I personally use that a lot.