on master help sign in
Replace ^/$ with gh/gl
commitadcfcf904445336340944bce3f699bb6365ebf2b authornotoria <notoria@users.noreply.github.com> dateFri 4 Jun 2021, 09:34 (5 years ago) parent4f0e3aa
3 files changed+4−5
book/src/keymap.md+2−2 helix-term/src/commands.rs+2 helix-term/src/keymap.rs−3
book/src/keymap.md+2−2
@@ -17,8 +17,6 @@
1717| f | find next char |
1818| T | find 'till previous char |
1919| F | find previous char |
20−| ^ | move to the start of the line |
21−| $ | move to the end of the line |
2220| m | Jump to matching bracket |
2321| PageUp | Move page up |
2422| PageDown | Move page down |
@@ -118,6 +116,8 @@ Jumps to various locations.
118116|-----|-----------|
119117| g | Go to the start of the file |
120118| 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 |
121121| t | Go to the top of the screen |
122122| m | Go to the middle of the screen |
123123| 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) {
12691269 match ch {
12701270 'g' => move_file_start(cx),
12711271 'e' => move_file_end(cx),
1272+ 'h' => move_line_start(cx),
1273+ 'l' => move_line_end(cx),
12721274 'd' => goto_definition(cx),
12731275 'y' => goto_type_definition(cx),
12741276 'r' => goto_reference(cx),
helix-term/src/keymap.rs−3
@@ -153,9 +153,6 @@ pub fn default() -> Keymaps {
153153 //
154154 key!('r') => commands::replace,
155155
156− key!('^') => commands::move_line_start,
157− key!('$') => commands::move_line_end,
158−
159156 key!('w') => commands::move_next_word_start,
160157 key!('b') => commands::move_prev_word_start,
161158 key!('e') => commands::move_next_word_end,