Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select and copy to last caret position #436

Open
posti opened this issue May 23, 2023 · 1 comment
Open

Select and copy to last caret position #436

posti opened this issue May 23, 2023 · 1 comment
Labels

Comments

@posti
Copy link

posti commented May 23, 2023

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 posti added the feature label May 23, 2023
@h0tk3y
Copy link

h0tk3y commented May 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants