1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00

don't show default key assignments in palette when they are disabled

refs: https://github.com/wez/wezterm/issues/4724
This commit is contained in:
Wez Furlong 2024-02-02 19:13:49 -07:00
parent aa81a46d58
commit 5eea7eb17b
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
2 changed files with 7 additions and 1 deletions

View File

@ -44,6 +44,8 @@ As features stabilize some brief notes about them will accumulate here.
* Command Palette: Missing space between keycaps on macOS. #4885
* macOS: stale/invalid cwd used when spawning new panes when shell integration
is NOT in use. #4811
* Command Palette: would show default key assignments next to actions even
if `disable_default_key_bindings` was configured. #4724
### 20240128-202157-1e552d76

View File

@ -171,7 +171,11 @@ impl CommandDef {
None
}
Some(def) => {
let keys = def.permute_keys(config);
let keys = if is_built_in && config.disable_default_key_bindings {
vec![]
} else {
def.permute_keys(config)
};
Some(ExpandedCommand {
brief: def.brief.into(),
doc: def.doc.into(),