aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjw0132024-01-08 02:11:18 +0000
committerGitHub2024-01-08 02:11:18 +0000
commit00d681cc69fcc0d58f3603709400d26ea2647114 (patch)
tree9d9225fcdce51fba96c4882f7e7b8c2c17d9ceda
parentc8e58304bf4b1b327067bd92ca6e3c9db897c572 (diff)
Update goto_file docs (#8563) (#9001)
Make the pluralization of files and selections consistent to emphasize the 1-to-1 relation between files and selections. The prior wording with plural "files" and singular "selection" can mislead users into thinking the command can open multiple files from a single selection.
-rw-r--r--book/src/keymap.md6
-rw-r--r--helix-term/src/commands.rs6
2 files changed, 6 insertions, 6 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index c6981b28..a3e41666 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -205,7 +205,7 @@ Jumps to various locations.
| ----- | ----------- | ------- |
| `g` | Go to line number `<n>` else start of file | `goto_file_start` |
| `e` | Go to the end of the file | `goto_last_line` |
-| `f` | Go to files in the selection | `goto_file` |
+| `f` | Go to files in the selections | `goto_file` |
| `h` | Go to the start of the line | `goto_line_start` |
| `l` | Go to the end of the line | `goto_line_end` |
| `s` | Go to first non-whitespace character of the line | `goto_first_nonwhitespace` |
@@ -253,8 +253,8 @@ This layer is similar to Vim keybindings as Kakoune does not support windows.
| `w`, `Ctrl-w` | Switch to next window | `rotate_view` |
| `v`, `Ctrl-v` | Vertical right split | `vsplit` |
| `s`, `Ctrl-s` | Horizontal bottom split | `hsplit` |
-| `f` | Go to files in the selection in horizontal splits | `goto_file` |
-| `F` | Go to files in the selection in vertical splits | `goto_file` |
+| `f` | Go to files in the selections in horizontal splits | `goto_file` |
+| `F` | Go to files in the selections in vertical splits | `goto_file` |
| `h`, `Ctrl-h`, `Left` | Move to left split | `jump_view_left` |
| `j`, `Ctrl-j`, `Down` | Move to split below | `jump_view_down` |
| `k`, `Ctrl-k`, `Up` | Move to split above | `jump_view_up` |
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 1b8f9e1f..ff0849f2 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -337,9 +337,9 @@ impl MappableCommand {
goto_implementation, "Goto implementation",
goto_file_start, "Goto line number <n> else file start",
goto_file_end, "Goto file end",
- goto_file, "Goto files/URLs in selection",
- goto_file_hsplit, "Goto files in selection (hsplit)",
- goto_file_vsplit, "Goto files in selection (vsplit)",
+ goto_file, "Goto files/URLs in selections",
+ goto_file_hsplit, "Goto files in selections (hsplit)",
+ goto_file_vsplit, "Goto files in selections (vsplit)",
goto_reference, "Goto references",
goto_window_top, "Goto window top",
goto_window_center, "Goto window center",