feat(tui): mention popup quick-open shortcuts for files and directories#16811
Open
Oerum wants to merge 2 commits intoanomalyco:devfrom
Open
feat(tui): mention popup quick-open shortcuts for files and directories#16811Oerum wants to merge 2 commits intoanomalyco:devfrom
Oerum wants to merge 2 commits intoanomalyco:devfrom
Conversation
…editor Adds the ability to quickly open a highlighted file or directory from the mention autocomplete popup into the system's default editor/file manager. - Maps `Ctrl+X` to open the highlighted file in `VISUAL`/`EDITOR` - Maps `Alt+O` to open the highlighted directory in the OS file manager - Scopes these keybinds exclusively to the mention popup to prevent collisions - Adds inline keybind hints to the mention popup footer - Provides fallback to OS default opener if no external editor is configured
This was referenced Mar 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #16809
Type of change
What does this PR do?
Adds the ability to quickly open a highlighted file or directory from the
@mention autocomplete popup into the system's default editor/file manager.Ctrl+Xto open the highlighted file inVISUAL/EDITORAlt+Oto open the highlighted directory in the OS file managerHow did you verify your code works?
openpackage fallback andVISUAL/EDITORlogic.Editor.fileandEditor.dirinpackages/opencode/test/cli/tui/editor.test.tswhich tests the cross-platform command launch and OS-default fallbacks.bun typecheckandbun testpass successfully locally.Screenshots / recordings
(No screenshots provided in this PR body, but manual TUI testing confirms layout stability without overlap)
Checklist