aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/keymap/default.rs
diff options
context:
space:
mode:
authorPascal Kuthe2023-11-21 00:46:12 +0000
committerBlaž Hrastnik2024-03-23 06:35:25 +0000
commitb46064b8c469c85b9626dba60728e23798354ed8 (patch)
tree203d9698a3e99767202c05e8c62850ea199a2a06 /helix-term/src/keymap/default.rs
parent3001f22b315e479dcfc24c7a0fd221d7fb03d276 (diff)
Add an Amp-like jump command
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
Diffstat (limited to 'helix-term/src/keymap/default.rs')
-rw-r--r--helix-term/src/keymap/default.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs
index bab662b0..ca5a21d2 100644
--- a/helix-term/src/keymap/default.rs
+++ b/helix-term/src/keymap/default.rs
@@ -58,6 +58,7 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"k" => move_line_up,
"j" => move_line_down,
"." => goto_last_modification,
+ "w" => goto_word,
},
":" => command_mode,
@@ -360,6 +361,7 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"g" => { "Goto"
"k" => extend_line_up,
"j" => extend_line_down,
+ "w" => extend_to_word,
},
}));
let insert = keymap!({ "Insert mode"