From 638a0358af57b3f6867784a32d236f9db0676363 Mon Sep 17 00:00:00 2001 From: Chuyang Chen Date: Fri, 30 May 2025 10:45:32 -0400 Subject: [PATCH 1/2] Update keymap.md to improve clarity --- book/src/keymap.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/book/src/keymap.md b/book/src/keymap.md index 10257378c..06c31ac29 100644 --- a/book/src/keymap.md +++ b/book/src/keymap.md @@ -35,6 +35,8 @@ Normal mode is the default mode when you launch helix. You can return to it from > NOTE: Unlike Vim, `f`, `F`, `t` and `T` are not confined to the current line. +> Hereafter, `` represents an integer by typing a sequence of digits. + | Key | Description | Command | | ----- | ----------- | ------- | | `h`, `Left` | Move left | `move_char_left` | @@ -51,7 +53,7 @@ Normal mode is the default mode when you launch helix. You can return to it from | `f` | Find next char | `find_next_char` | | `T` | Find till previous char | `till_prev_char` | | `F` | Find previous char | `find_prev_char` | -| `G` | Go to line number `` | `goto_line` | +| `G`, `gg` | Go to line number `` | `goto_line` | | `Alt-.` | Repeat last motion (`f`, `t`, `m`, `[` or `]`) | `repeat_last_motion` | | `Home` | Move to the start of the line | `goto_line_start` | | `End` | Move to the end of the line | `goto_line_end` | @@ -212,7 +214,7 @@ Jumps to various locations. | Key | Description | Command | | ----- | ----------- | ------- | -| `g` | Go to line number `` else start of file | `goto_file_start` | +| `g`| Go to line number `` else start of file | `goto_file_start` | | | | Go to column number `` else start of line | `goto_column` | | `e` | Go to the end of the file | `goto_last_line` | | `f` | Go to files in the selections | `goto_file` | From 0c30efc802495004e876f83c7514a5831cbbc4cc Mon Sep 17 00:00:00 2001 From: Chuyang Chen Date: Fri, 30 May 2025 10:55:15 -0400 Subject: [PATCH 2/2] Update keymap.md Split the goto commands with and without `` --- book/src/keymap.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/book/src/keymap.md b/book/src/keymap.md index 06c31ac29..99c0e7730 100644 --- a/book/src/keymap.md +++ b/book/src/keymap.md @@ -214,8 +214,10 @@ Jumps to various locations. | Key | Description | Command | | ----- | ----------- | ------- | -| `g`| Go to line number `` else start of file | `goto_file_start` | -| | | Go to column number `` else start of line | `goto_column` | +| `g`| Go to line number `` | `goto_file_start` | +| `g` | Go to the start of the file | `goto_file_start` | +| <n>| | Go to column number `` | `goto_column` | +| | | Go to the start of line | `goto_column` | | `e` | Go to the end of the file | `goto_last_line` | | `f` | Go to files in the selections | `goto_file` | | `h` | Go to the start of the line | `goto_line_start` |