diff options
author | Joe | 2022-03-14 02:47:52 +0000 |
---|---|---|
committer | GitHub | 2022-03-14 02:47:52 +0000 |
commit | c0dbd6dc3f147b46d4352ac78903a7a70741cfd9 (patch) | |
tree | dece1b71c36aa367d13959b0f483d66423150709 /helix-term/src/keymap.rs | |
parent | 85492e587cc27ba9783c8380683660a0f4423ff4 (diff) |
Add horizontal and vertical split scratch buffers (#1763)
Make subcommand name more descriptive
Fix vsplit completer
Run cargo xtask docgen
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r-- | helix-term/src/keymap.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 1fe1f633..1059feae 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -682,6 +682,10 @@ impl Default for Keymaps { "C-j" | "j" | "down" => jump_view_down, "C-k" | "k" | "up" => jump_view_up, "C-l" | "l" | "right" => jump_view_right, + "n" => { "New split scratch buffer" + "C-s" | "s" => hsplit_new, + "C-v" | "v" => vsplit_new, + }, }, // move under <space>c @@ -732,6 +736,10 @@ impl Default for Keymaps { "C-j" | "j" | "down" => jump_view_down, "C-k" | "k" | "up" => jump_view_up, "C-l" | "l" | "right" => jump_view_right, + "n" => { "New split scratch buffer" + "C-s" | "s" => hsplit_new, + "C-v" | "v" => vsplit_new, + }, }, "y" => yank_joined_to_clipboard, "Y" => yank_main_selection_to_clipboard, |