mirror of
https://github.com/helix-editor/helix.git
synced 2025-01-19 13:37:06 +04:00
experiment: space+k for LSP doc, K for keep_selections
This commit is contained in:
parent
9ea9e779b2
commit
75dba1f956
@ -38,7 +38,6 @@ ### Movement
|
|||||||
| `Z` | Enter sticky [view mode](#view-mode) | N/A |
|
| `Z` | Enter sticky [view mode](#view-mode) | N/A |
|
||||||
| `Ctrl-w` | Enter [window mode](#window-mode) | N/A |
|
| `Ctrl-w` | Enter [window mode](#window-mode) | N/A |
|
||||||
| `Space` | Enter [space mode](#space-mode) | N/A |
|
| `Space` | Enter [space mode](#space-mode) | N/A |
|
||||||
| `K` | Show documentation for the item under the cursor | `hover` |
|
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
@ -98,7 +97,7 @@ ### Selection manipulation
|
|||||||
| `X` | Extend selection to line bounds (line-wise selection) | `extend_to_line_bounds` |
|
| `X` | Extend selection to line bounds (line-wise selection) | `extend_to_line_bounds` |
|
||||||
| | Expand selection to parent syntax node TODO: pick a key | `expand_selection` |
|
| | Expand selection to parent syntax node TODO: pick a key | `expand_selection` |
|
||||||
| `J` | Join lines inside selection | `join_selections` |
|
| `J` | Join lines inside selection | `join_selections` |
|
||||||
| `K` | Keep selections matching the regex TODO: overlapped by hover help | `keep_selections` |
|
| `K` | Keep selections matching the regex | `keep_selections` |
|
||||||
| `$` | Pipe each selection into shell command, keep selections where command returned 0 | `shell_keep_pipe` |
|
| `$` | Pipe each selection into shell command, keep selections where command returned 0 | `shell_keep_pipe` |
|
||||||
| `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` |
|
| `Ctrl-c` | Comment/uncomment the selections | `toggle_comments` |
|
||||||
|
|
||||||
@ -194,6 +193,7 @@ #### Space mode
|
|||||||
|
|
||||||
| Key | Description | Command |
|
| Key | Description | Command |
|
||||||
| ----- | ----------- | ------- |
|
| ----- | ----------- | ------- |
|
||||||
|
| `k` | Show documentation for the item under the cursor | `hover` |
|
||||||
| `f` | Open file picker | `file_picker` |
|
| `f` | Open file picker | `file_picker` |
|
||||||
| `b` | Open buffer picker | `buffer_picker` |
|
| `b` | Open buffer picker | `buffer_picker` |
|
||||||
| `s` | Open symbol picker (current document) | `symbol_picker` |
|
| `s` | Open symbol picker (current document) | `symbol_picker` |
|
||||||
|
@ -495,7 +495,6 @@ fn default() -> Keymaps {
|
|||||||
"<" => unindent,
|
"<" => unindent,
|
||||||
"=" => format_selections,
|
"=" => format_selections,
|
||||||
"J" => join_selections,
|
"J" => join_selections,
|
||||||
// TODO: conflicts hover/doc
|
|
||||||
"K" => keep_selections,
|
"K" => keep_selections,
|
||||||
// TODO: and another method for inverse
|
// TODO: and another method for inverse
|
||||||
|
|
||||||
@ -527,7 +526,6 @@ fn default() -> Keymaps {
|
|||||||
|
|
||||||
// move under <space>c
|
// move under <space>c
|
||||||
"C-c" => toggle_comments,
|
"C-c" => toggle_comments,
|
||||||
"K" => hover,
|
|
||||||
|
|
||||||
// z family for save/restore/combine from/to sels from register
|
// z family for save/restore/combine from/to sels from register
|
||||||
|
|
||||||
@ -553,6 +551,7 @@ fn default() -> Keymaps {
|
|||||||
"P" => paste_clipboard_before,
|
"P" => paste_clipboard_before,
|
||||||
"R" => replace_selections_with_clipboard,
|
"R" => replace_selections_with_clipboard,
|
||||||
"/" => global_search,
|
"/" => global_search,
|
||||||
|
"k" => hover,
|
||||||
},
|
},
|
||||||
"z" => { "View"
|
"z" => { "View"
|
||||||
"z" | "c" => align_view_center,
|
"z" | "c" => align_view_center,
|
||||||
|
Loading…
Reference in New Issue
Block a user