on master help sign in
Replace ^/$ with gh/gl
adcfcf9notoria
book/src/keymap.md+2−2
@@ -17,8 +17,6 @@
17| f | find next char |
17| f | find next char |
18| T | find 'till previous char |
18| T | find 'till previous char |
19| F | find previous char |
19| F | find previous char |
20−| ^ | move to the start of the line |
21−| $ | move to the end of the line |
22| m | Jump to matching bracket |
20| m | Jump to matching bracket |
23| PageUp | Move page up |
21| PageUp | Move page up |
24| PageDown | Move page down |
22| PageDown | Move page down |
@@ -118,6 +116,8 @@ Jumps to various locations.
118|-----|-----------|
116|-----|-----------|
119| g | Go to the start of the file |
117| g | Go to the start of the file |
120| e | Go to the end of the file |
118| e | Go to the end of the file |
119+| h | Go to the start of the line |
120+| l | Go to the end of the line |
121| t | Go to the top of the screen |
121| t | Go to the top of the screen |
122| m | Go to the middle of the screen |
122| m | Go to the middle of the screen |
123| b | Go to the bottom of the screen |
123| b | Go to the bottom of the screen |
helix-term/src/commands.rs+2
@@ -1269,6 +1269,8 @@ pub fn goto_mode(cx: &mut Context) {
1269 match ch {
1269 match ch {
1270 'g' => move_file_start(cx),
1270 'g' => move_file_start(cx),
1271 'e' => move_file_end(cx),
1271 'e' => move_file_end(cx),
1272+ 'h' => move_line_start(cx),
1273+ 'l' => move_line_end(cx),
1272 'd' => goto_definition(cx),
1274 'd' => goto_definition(cx),
1273 'y' => goto_type_definition(cx),
1275 'y' => goto_type_definition(cx),
1274 'r' => goto_reference(cx),
1276 'r' => goto_reference(cx),
helix-term/src/keymap.rs−3
@@ -153,9 +153,6 @@ pub fn default() -> Keymaps {
153 //
153 //
154 key!('r') => commands::replace,
154 key!('r') => commands::replace,
155
155
156− key!('^') => commands::move_line_start,
157− key!('$') => commands::move_line_end,
158−
159 key!('w') => commands::move_next_word_start,
156 key!('w') => commands::move_next_word_start,
160 key!('b') => commands::move_prev_word_start,
157 key!('b') => commands::move_prev_word_start,
161 key!('e') => commands::move_next_word_end,
158 key!('e') => commands::move_next_word_end,