mirror of https://github.com/helix-editor/helix
parent
0ca5e5472a
commit
90d6a5f652
|
@ -290,7 +290,7 @@ This layer is a kludge of mappings, mostly pickers.
|
||||||
| `g` | Open changed file picker | `changed_file_picker` |
|
| `g` | Open changed file picker | `changed_file_picker` |
|
||||||
| `G` | Debug (experimental) | N/A |
|
| `G` | Debug (experimental) | N/A |
|
||||||
| `k` | Show documentation for item under cursor in a [popup](#popup) (**LSP**) | `hover` |
|
| `k` | Show documentation for item under cursor in a [popup](#popup) (**LSP**) | `hover` |
|
||||||
| `K` | Show documentation for item under cursor in a new buffer (**LSP**) | `hover_dump` |
|
| `K` | Go to documentation for item under cursor in a new buffer (**LSP**) | `goto_hover` |
|
||||||
| `s` | Open document symbol picker (**LSP**) | `symbol_picker` |
|
| `s` | Open document symbol picker (**LSP**) | `symbol_picker` |
|
||||||
| `S` | Open workspace symbol picker (**LSP**) | `workspace_symbol_picker` |
|
| `S` | Open workspace symbol picker (**LSP**) | `workspace_symbol_picker` |
|
||||||
| `d` | Open document diagnostics picker (**LSP**) | `diagnostics_picker` |
|
| `d` | Open document diagnostics picker (**LSP**) | `diagnostics_picker` |
|
||||||
|
|
|
@ -504,7 +504,7 @@ impl MappableCommand {
|
||||||
remove_primary_selection, "Remove primary selection",
|
remove_primary_selection, "Remove primary selection",
|
||||||
completion, "Invoke completion popup",
|
completion, "Invoke completion popup",
|
||||||
hover, "Show docs for item under cursor",
|
hover, "Show docs for item under cursor",
|
||||||
hover_dump, "Show docs for item under cursor in a new buffer",
|
goto_hover, "Show docs for item under cursor in a new buffer",
|
||||||
toggle_comments, "Comment/uncomment selections",
|
toggle_comments, "Comment/uncomment selections",
|
||||||
toggle_line_comments, "Line comment/uncomment selections",
|
toggle_line_comments, "Line comment/uncomment selections",
|
||||||
toggle_block_comments, "Block comment/uncomment selections",
|
toggle_block_comments, "Block comment/uncomment selections",
|
||||||
|
|
|
@ -1078,7 +1078,7 @@ fn hover_impl(cx: &mut Context, hover_action: HoverDisplay) {
|
||||||
}
|
}
|
||||||
HoverDisplay::File => {
|
HoverDisplay::File => {
|
||||||
editor.new_file_from_document(
|
editor.new_file_from_document(
|
||||||
Action::VerticalSplit,
|
Action::Replace,
|
||||||
Document::from(
|
Document::from(
|
||||||
Rope::from(hover.content_string()),
|
Rope::from(hover.content_string()),
|
||||||
None,
|
None,
|
||||||
|
@ -1100,7 +1100,7 @@ pub fn hover(cx: &mut Context) {
|
||||||
hover_impl(cx, HoverDisplay::Popup)
|
hover_impl(cx, HoverDisplay::Popup)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn hover_dump(cx: &mut Context) {
|
pub fn goto_hover(cx: &mut Context) {
|
||||||
hover_impl(cx, HoverDisplay::File)
|
hover_impl(cx, HoverDisplay::File)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -283,7 +283,7 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
|
||||||
"R" => replace_selections_with_clipboard,
|
"R" => replace_selections_with_clipboard,
|
||||||
"/" => global_search,
|
"/" => global_search,
|
||||||
"k" => hover,
|
"k" => hover,
|
||||||
"K" => hover_dump,
|
"K" => goto_hover,
|
||||||
"r" => rename_symbol,
|
"r" => rename_symbol,
|
||||||
"h" => select_references_to_symbol_under_cursor,
|
"h" => select_references_to_symbol_under_cursor,
|
||||||
"c" => toggle_comments,
|
"c" => toggle_comments,
|
||||||
|
|
Loading…
Reference in New Issue