on master help sign in
experiment: space+k for LSP doc, K for keep_selections
commit75dba1f9560c6ea579e79ff074e60ba2fb87ca63 authorBlaž Hrastnik <blaz@mxxn.io> dateWed 8 Sep 2021, 17:21 (5 years ago) parent9ea9e77
2 files changed+3−4
book/src/keymap.md+2−2 helix-term/src/keymap.rs+1−2
book/src/keymap.md+2−2
@@ -38,7 +38,6 @@
3838| `Z` | Enter sticky [view mode](#view-mode) | N/A |
3939| `Ctrl-w` | Enter [window mode](#window-mode) | N/A |
4040| `Space` | Enter [space mode](#space-mode) | N/A |
41−| `K` | Show documentation for the item under the cursor | `hover` |
4241
4342### Changes
4443
@@ -98,7 +97,7 @@
9897| `X` | Extend selection to line bounds (line-wise selection) | `extend_to_line_bounds` |
9998| | Expand selection to parent syntax node TODO: pick a key | `expand_selection` |
10099| `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` |
102101| `$` | Pipe each selection into shell command, keep selections where command returned 0 | `shell_keep_pipe` |
103102| `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` |
104103
@@ -194,6 +193,7 @@ This layer is a kludge of mappings, mostly pickers.
194193
195194| Key | Description | Command |
196195| ----- | ----------- | ------- |
196+| `k` | Show documentation for the item under the cursor | `hover` |
197197| `f` | Open file picker | `file_picker` |
198198| `b` | Open buffer picker | `buffer_picker` |
199199| `s` | Open symbol picker (current document) | `symbol_picker` |
helix-term/src/keymap.rs+1−2
@@ -495,7 +495,6 @@ impl Default for Keymaps {
495495 "<" => unindent,
496496 "=" => format_selections,
497497 "J" => join_selections,
498− // TODO: conflicts hover/doc
499498 "K" => keep_selections,
500499 // TODO: and another method for inverse
501500
@@ -527,7 +526,6 @@ impl Default for Keymaps {
527526
528527 // move under <space>c
529528 "C-c" => toggle_comments,
530− "K" => hover,
531529
532530 // z family for save/restore/combine from/to sels from register
533531
@@ -553,6 +551,7 @@ impl Default for Keymaps {
553551 "P" => paste_clipboard_before,
554552 "R" => replace_selections_with_clipboard,
555553 "/" => global_search,
554+ "k" => hover,
556555 },
557556 "z" => { "View"
558557 "z" | "c" => align_view_center,