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:
parent
aa81a46d58
commit
5eea7eb17b
@ -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
|
||||
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user