Fix workspace::SendKeystrokes
example in docs (#36515)
Closes: https://github.com/zed-industries/zed/issues/25683 Remove two bad examples from the key binding docs. `cmd-shift-p` (command palette) and `cmd-p` (file finder) are async operations and thus do not work properly with `workspace::SendKeystrokes`. Originally reported in https://github.com/zed-industries/zed/issues/25683#issuecomment-3145830534 Release Notes: - N/A
This commit is contained in:
parent
05fc0c432c
commit
69b1c6d6f5
1 changed files with 5 additions and 3 deletions
|
@ -225,12 +225,14 @@ A common request is to be able to map from a single keystroke to a sequence. You
|
|||
[
|
||||
{
|
||||
"bindings": {
|
||||
// Move down four times
|
||||
"alt-down": ["workspace::SendKeystrokes", "down down down down"],
|
||||
// Expand the selection (editor::SelectLargerSyntaxNode);
|
||||
// copy to the clipboard; and then undo the selection expansion.
|
||||
"cmd-alt-c": [
|
||||
"workspace::SendKeystrokes",
|
||||
"cmd-shift-p copy relative path enter"
|
||||
],
|
||||
"cmd-alt-r": ["workspace::SendKeystrokes", "cmd-p README enter"]
|
||||
"ctrl-shift-right ctrl-shift-right ctrl-shift-right cmd-c ctrl-shift-left ctrl-shift-left ctrl-shift-left"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue