Skip to content

Commit

Permalink
[input] disable input palette when options.disp_expert set
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Oct 4, 2024
1 parent 551b06c commit eebb684
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions visidata/features/cmdpalette.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def inputPalette(sheet, prompt, items,
formatter=lambda m, item, trigger_key: f'{trigger_key} {item}',
multiple=False,
**kwargs):
if sheet.options.disp_expert:
return vd.input(prompt,
completer=CompleteKey(sorted(item[value_key] for item in items)),
**kwargs)

bindings = dict()

tabitem = -1
Expand Down

0 comments on commit eebb684

Please sign in to comment.