diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 0c33241f..0da23fc7 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1948,6 +1948,26 @@ fn _paste(reg: char, doc: &mut Document, view: &View, action: Paste) -> Option paste every yanked selection after selected text // alt-P => paste every yanked selection before selected text // R => replace selected text with yanked text diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index d2fa46c7..0324fd04 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -156,6 +156,7 @@ pub fn default() -> Keymaps { // and matching set for select mode (extend) // key!('r') => commands::replace, + key!('R') => commands::replace_with_yanked, KeyEvent { code: KeyCode::Home,