Replace ^/$ with gh/gl
This commit is contained in:
parent
4f0e3aa948
commit
adcfcf9044
3 changed files with 4 additions and 5 deletions
|
@ -17,8 +17,6 @@
|
||||||
| f | find next char |
|
| f | find next char |
|
||||||
| T | find 'till previous char |
|
| T | find 'till previous char |
|
||||||
| F | find previous char |
|
| F | find previous char |
|
||||||
| ^ | move to the start of the line |
|
|
||||||
| $ | move to the end of the line |
|
|
||||||
| m | Jump to matching bracket |
|
| m | Jump to matching bracket |
|
||||||
| PageUp | Move page up |
|
| PageUp | Move page up |
|
||||||
| PageDown | Move page down |
|
| PageDown | Move page down |
|
||||||
|
@ -118,6 +116,8 @@ Jumps to various locations.
|
||||||
|-----|-----------|
|
|-----|-----------|
|
||||||
| g | Go to the start of the file |
|
| g | Go to the start of the file |
|
||||||
| e | Go to the end of the file |
|
| e | Go to the end of the file |
|
||||||
|
| h | Go to the start of the line |
|
||||||
|
| l | Go to the end of the line |
|
||||||
| t | Go to the top of the screen |
|
| t | Go to the top of the screen |
|
||||||
| m | Go to the middle of the screen |
|
| m | Go to the middle of the screen |
|
||||||
| b | Go to the bottom of the screen |
|
| b | Go to the bottom of the screen |
|
||||||
|
|
|
@ -1269,6 +1269,8 @@ pub fn goto_mode(cx: &mut Context) {
|
||||||
match ch {
|
match ch {
|
||||||
'g' => move_file_start(cx),
|
'g' => move_file_start(cx),
|
||||||
'e' => move_file_end(cx),
|
'e' => move_file_end(cx),
|
||||||
|
'h' => move_line_start(cx),
|
||||||
|
'l' => move_line_end(cx),
|
||||||
'd' => goto_definition(cx),
|
'd' => goto_definition(cx),
|
||||||
'y' => goto_type_definition(cx),
|
'y' => goto_type_definition(cx),
|
||||||
'r' => goto_reference(cx),
|
'r' => goto_reference(cx),
|
||||||
|
|
|
@ -153,9 +153,6 @@ pub fn default() -> Keymaps {
|
||||||
//
|
//
|
||||||
key!('r') => commands::replace,
|
key!('r') => commands::replace,
|
||||||
|
|
||||||
key!('^') => commands::move_line_start,
|
|
||||||
key!('$') => commands::move_line_end,
|
|
||||||
|
|
||||||
key!('w') => commands::move_next_word_start,
|
key!('w') => commands::move_next_word_start,
|
||||||
key!('b') => commands::move_prev_word_start,
|
key!('b') => commands::move_prev_word_start,
|
||||||
key!('e') => commands::move_next_word_end,
|
key!('e') => commands::move_next_word_end,
|
||||||
|
|
Loading…
Add table
Reference in a new issue