tui: autocomplete: expand directory on Tab, select on Enter#6975
Merged
rekram1-node merged 1 commit intoanomalyco:devfrom Jan 5, 2026
Merged
tui: autocomplete: expand directory on Tab, select on Enter#6975rekram1-node merged 1 commit intoanomalyco:devfrom
rekram1-node merged 1 commit intoanomalyco:devfrom
Conversation
Previously, both Tab and Enter keys would immediately select the currently highlighted autocomplete option. There was no direct way to navigate into subdirectories unless the user already knew the exact filename within that directory. Change the Tab key behavior to expand directories instead of selecting them. When the user presses Tab on a directory entry (identified by trailing slash), the input is updated to show the directory path, allowing further navigation into subdirectories. Enter key retains the original behavior of immediate selection. This provides a more intuitive file navigation experience similar to shell tab completion, where Tab expands paths progressively and Enter confirms the final selection. Signed-off-by: yuguorui <yuguorui@pku.edu.cn>
Contributor
|
The following comment was made by an LLM, it may be inaccurate: ResultsNo duplicate PRs found. The search returned the PR itself (#6975) but no other open PRs that are duplicates of this one. Related PRs found (for reference):
These are related work but not duplicates of the autocomplete Tab/Enter behavior change you're checking. |
Collaborator
|
/review |
Contributor
|
lgtm |
ryanwyler
pushed a commit
to gignit/opencode-orig
that referenced
this pull request
Jan 6, 2026
…o#6975) Signed-off-by: yuguorui <yuguorui@pku.edu.cn>
1 task
triklozoid
pushed a commit
to triklozoid/opencode
that referenced
this pull request
Feb 2, 2026
…o#6975) Signed-off-by: yuguorui <yuguorui@pku.edu.cn>
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.
Previously, both Tab and Enter keys would immediately select the currently highlighted autocomplete option. There was no direct way to navigate into subdirectories unless the user already knew the exact filename within that directory.
Change the Tab key behavior to expand directories instead of selecting them. When the user presses Tab on a directory entry (identified by trailing slash), the input is updated to show the directory path, allowing further navigation into subdirectories. Enter key retains the original behavior of immediate selection.
This provides a more intuitive file navigation experience similar to shell tab completion, where Tab expands paths progressively and Enter confirms the final selection.