on master help sign in
experiment: space+k for LSP doc, K for keep_selections
75dba1fBlaž Hrastnik
book/src/keymap.md+2−2
@@ -38,7 +38,6 @@
38| `Z` | Enter sticky [view mode](#view-mode) | N/A |
38| `Z` | Enter sticky [view mode](#view-mode) | N/A |
39| `Ctrl-w` | Enter [window mode](#window-mode) | N/A |
39| `Ctrl-w` | Enter [window mode](#window-mode) | N/A |
40| `Space` | Enter [space mode](#space-mode) | N/A |
40| `Space` | Enter [space mode](#space-mode) | N/A |
41−| `K` | Show documentation for the item under the cursor | `hover` |
42
41
43### Changes
42### Changes
44
43
@@ -98,7 +97,7 @@
98| `X` | Extend selection to line bounds (line-wise selection) | `extend_to_line_bounds` |
97| `X` | Extend selection to line bounds (line-wise selection) | `extend_to_line_bounds` |
99| | Expand selection to parent syntax node TODO: pick a key | `expand_selection` |
98| | Expand selection to parent syntax node TODO: pick a key | `expand_selection` |
100| `J` | Join lines inside selection | `join_selections` |
99| `J` | Join lines inside selection | `join_selections` |
101−| `K` | Keep selections matching the regex TODO: overlapped by hover help | `keep_selections` |
100+| `K` | Keep selections matching the regex | `keep_selections` |
102| `$` | Pipe each selection into shell command, keep selections where command returned 0 | `shell_keep_pipe` |
101| `$` | Pipe each selection into shell command, keep selections where command returned 0 | `shell_keep_pipe` |
103| `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` |
102| `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` |
104
103
@@ -194,6 +193,7 @@ This layer is a kludge of mappings, mostly pickers.
194
193
195| Key | Description | Command |
194| Key | Description | Command |
196| ----- | ----------- | ------- |
195| ----- | ----------- | ------- |
196+| `k` | Show documentation for the item under the cursor | `hover` |
197| `f` | Open file picker | `file_picker` |
197| `f` | Open file picker | `file_picker` |
198| `b` | Open buffer picker | `buffer_picker` |
198| `b` | Open buffer picker | `buffer_picker` |
199| `s` | Open symbol picker (current document) | `symbol_picker` |
199| `s` | Open symbol picker (current document) | `symbol_picker` |
helix-term/src/keymap.rs+1−2
@@ -495,7 +495,6 @@ impl Default for Keymaps {
495 "<" => unindent,
495 "<" => unindent,
496 "=" => format_selections,
496 "=" => format_selections,
497 "J" => join_selections,
497 "J" => join_selections,
498− // TODO: conflicts hover/doc
499 "K" => keep_selections,
498 "K" => keep_selections,
500 // TODO: and another method for inverse
499 // TODO: and another method for inverse
501
500
@@ -527,7 +526,6 @@ impl Default for Keymaps {
527
526
528 // move under <space>c
527 // move under <space>c
529 "C-c" => toggle_comments,
528 "C-c" => toggle_comments,
530− "K" => hover,
531
529
532 // z family for save/restore/combine from/to sels from register
530 // z family for save/restore/combine from/to sels from register
533
531
@@ -553,6 +551,7 @@ impl Default for Keymaps {
553 "P" => paste_clipboard_before,
551 "P" => paste_clipboard_before,
554 "R" => replace_selections_with_clipboard,
552 "R" => replace_selections_with_clipboard,
555 "/" => global_search,
553 "/" => global_search,
554+ "k" => hover,
556 },
555 },
557 "z" => { "View"
556 "z" => { "View"
558 "z" | "c" => align_view_center,
557 "z" | "c" => align_view_center,