-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Added command to copy between registers #9717
base: master
Are you sure you want to change the base?
Conversation
I wonder if this is quite the right command tough. kacuone has a more generic |
To be clear, one would do this in kakoune by typing |
I think a |
We discussed this briefly: I don't think a typable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make this a little more interactive let's show the autoinfo popup for the registers like in select_register
:
helix/helix-term/src/commands.rs
Lines 4836 to 4844 in f46a09a
fn select_register(cx: &mut Context) { | |
cx.editor.autoinfo = Some(Info::from_registers(&cx.editor.registers)); | |
cx.on_next_key(move |cx, event| { | |
if let Some(ch) = event.char() { | |
cx.editor.autoinfo = None; | |
cx.editor.selected_register = Some(ch); | |
} | |
}) | |
} |
and prompt for both register with two on_next_key
callbacks
Should we close #7494 in favor of this? |
No we want both set-register so you can combine it with commands expansion (and use it in keymaps) and an interactive command to copy between registers. |
Added a command to copy the contents of the selected register to another. Closes #9552.