AceJump icon indicating copy to clipboard operation
AceJump copied to clipboard

Select and copy to last caret position

Open posti opened this issue 2 years ago • 1 comments
trafficstars

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.

posti avatar May 23 '23 09:05 posti

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.

h0tk3y avatar May 27 '23 17:05 h0tk3y