Skip to content

fix(ui): hide disabled commands#226

Merged
sudo-tee merged 2 commits into
sudo-tee:mainfrom
disrupted:input-filter-enabled-commands
Feb 2, 2026
Merged

fix(ui): hide disabled commands#226
sudo-tee merged 2 commits into
sudo-tee:mainfrom
disrupted:input-filter-enabled-commands

Conversation

@disrupted
Copy link
Copy Markdown
Contributor

@disrupted disrupted commented Feb 2, 2026

when using a custom keymap the user might choose to disable some of the builtin commands. for example I use the brilliant integration with the Snacks files picker https://github.com/sudo-tee/opencode.nvim?tab=readme-ov-file#snacks-picker-integration-with-opencode

therefore I've disabled the ~ files command in my config

{
  keymap = {
    input_window = {
      ["~"] = false,
    },
  },
}

the UI would still show a hint for the disabled command but the mapping does not exist. with this we only show hints for commands that are actually enabled.

@sudo-tee
Copy link
Copy Markdown
Owner

sudo-tee commented Feb 2, 2026

Thanks for this fix

Looks good to me

@sudo-tee sudo-tee merged commit 6668627 into sudo-tee:main Feb 2, 2026
5 checks passed
@disrupted disrupted deleted the input-filter-enabled-commands branch February 2, 2026 20:18
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