Skip to content

[terminal-] hide Alt+[Shift+I as no-op binding on chooser#3116

Merged
saulpw merged 1 commit into
saulpw:developfrom
midichef:no_op_keys
May 29, 2026
Merged

[terminal-] hide Alt+[Shift+I as no-op binding on chooser#3116
saulpw merged 1 commit into
saulpw:developfrom
midichef:no_op_keys

Conversation

@midichef

Copy link
Copy Markdown
Contributor

In the command palette, no-op is bound to an ugly key sequence.
no-op-key

I use bindkey to an empty string that comes as the first binding to no-op, to make it blank:
no-op-key-after

I didn't test this much yet, but it seems fine in my initial use today.

Comment thread visidata/tuiwin.py
return px, py


vd.bindkey('', 'no-op') # needed to hide the next 2 long key combinations from showing up on palette chooser

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I guess because no-op is bound at definition time with an empty string, but addCommand ignores an empty string.

@saulpw saulpw merged commit 09f20ad into saulpw:develop May 29, 2026
12 checks passed
@midichef midichef deleted the no_op_keys branch May 30, 2026 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants