Stop using alt- shortcuts (#20378)
Closes #7688 Release Notes: - (breaking change) Stop binding keyboard shortcuts to alt-[a-z]. These get in the way of typing characters. This is usually not an issue for English speakers because we don't use many characters; but for other Latin-based languages with diacritics our shortcuts prevent them typing what they need to type. This primarily affects Zed's extra features: * `alt-q` => `cmd-k q` on maOS, `ctrl-k q` on Linux for `editor::Rewrap` * `alt-z` => `cmd-k z` on macOS `ctrl-k z` on Linux for `editor::ToggleSoftWrap` * `alt-m` => `ctrl-shift-m` for `assistant::ToggleModelSelector` * `alt-v` => `ctrl-shift-v` for `["editor::MovePageUp", { "center_cursor": true }]` (macOS only) * `alt-t` => `cmd-shift-r` on maOS, `ctrl-shift-r` on Linux for `task::Spawn` (The previous binding for `editor::RevealInFileManager` now only applies in the project panel) * `alt-shift-t` => `alt-cmd-r` on maOS, `ctrl-alt-r` on Linux for `task::Rerun` * `alt-shift-f` => `ctrl-shift-f` for `project_panel::SearchInDirectory`. But also overrides some bindings from Readline. * `alt-h` => `alt-backspace` for `editor::DeleteToPreviousWordStart` * `alt-d` => `alt-delete` for `editor::DeleteToNextWordEnd` * `alt-f` => `ctrl-f` for `editor:: MoveToNextWordEnd` (`ctrl-f` was previously `editor::MoveRight`) * `alt-b` => `ctrl-b` for `editor::MoveToNextWordStart` (`ctrl-b` was previously `editor::MoveLeft`) Note that `alt-t` and `alt-shift-t` have been kept as aliases (because no-one complained about `t` yet; but we may remove them completely in the future).
This commit is contained in:
@@ -56,7 +56,8 @@
|
||||
"shift-tab": "editor::TabPrev",
|
||||
"ctrl-k": "editor::CutToEndOfLine",
|
||||
// "ctrl-t": "editor::Transpose",
|
||||
"alt-q": "editor::Rewrap",
|
||||
"ctrl-k ctrl-q": "editor::Rewrap",
|
||||
"ctrl-k q": "editor::Rewrap",
|
||||
"ctrl-backspace": "editor::DeleteToPreviousWordStart",
|
||||
"ctrl-delete": "editor::DeleteToNextWordEnd",
|
||||
"shift-delete": "editor::Cut",
|
||||
@@ -126,7 +127,8 @@
|
||||
"shift-enter": "editor::Newline",
|
||||
"ctrl-enter": "editor::NewlineAbove",
|
||||
"ctrl-shift-enter": "editor::NewlineBelow",
|
||||
"alt-z": "editor::ToggleSoftWrap",
|
||||
"ctrl-k ctrl-z": "editor::ToggleSoftWrap",
|
||||
"ctrl-k z": "editor::ToggleSoftWrap",
|
||||
"ctrl-f": "buffer_search::Deploy",
|
||||
"ctrl-h": ["buffer_search::Deploy", { "replace_enabled": true }],
|
||||
// "cmd-e": ["buffer_search::Deploy", { "focus": false }],
|
||||
@@ -169,7 +171,7 @@
|
||||
"ctrl-k c": "assistant::CopyCode",
|
||||
"ctrl-g": "search::SelectNextMatch",
|
||||
"ctrl-shift-g": "search::SelectPrevMatch",
|
||||
"alt-m": "assistant::ToggleModelSelector",
|
||||
"ctrl-shift-m": "assistant::ToggleModelSelector",
|
||||
"ctrl-k h": "assistant::DeployHistory",
|
||||
"ctrl-k l": "assistant::DeployPromptLibrary",
|
||||
"ctrl-n": "assistant::NewContext"
|
||||
@@ -326,7 +328,6 @@
|
||||
"ctrl-k ctrl-j": "editor::UnfoldAll",
|
||||
"ctrl-space": "editor::ShowCompletions",
|
||||
"ctrl-.": "editor::ToggleCodeActions",
|
||||
"alt-ctrl-r": "editor::RevealInFileManager",
|
||||
"ctrl-k r": "editor::RevealInFileManager",
|
||||
"ctrl-k p": "editor::CopyPath",
|
||||
"ctrl-\\": "pane::SplitRight",
|
||||
@@ -417,6 +418,8 @@
|
||||
"ctrl-k shift-up": ["workspace::SwapPaneInDirection", "Up"],
|
||||
"ctrl-k shift-down": ["workspace::SwapPaneInDirection", "Down"],
|
||||
"ctrl-shift-x": "zed::Extensions",
|
||||
"ctrl-shift-r": "task::Rerun",
|
||||
"ctrl-alt-r": "task::Rerun",
|
||||
"alt-t": "task::Rerun",
|
||||
"alt-shift-t": "task::Spawn"
|
||||
}
|
||||
@@ -587,7 +590,7 @@
|
||||
"ctrl-delete": ["project_panel::Delete", { "skip_prompt": false }],
|
||||
"alt-ctrl-r": "project_panel::RevealInFileManager",
|
||||
"ctrl-shift-enter": "project_panel::OpenWithSystem",
|
||||
"alt-shift-f": "project_panel::NewSearchInDirectory",
|
||||
"ctrl-shift-f": "project_panel::NewSearchInDirectory",
|
||||
"shift-down": "menu::SelectNext",
|
||||
"shift-up": "menu::SelectPrev",
|
||||
"escape": "menu::Cancel"
|
||||
|
||||
Reference in New Issue
Block a user