Skip to content

Conversation

@yuguorui
Copy link
Contributor

@yuguorui yuguorui commented Jan 5, 2026

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.

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>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

The following comment was made by an LLM, it may be inaccurate:

Results

No 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.

@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

lgtm

@rekram1-node rekram1-node merged commit 5a38a6f into anomalyco:dev Jan 5, 2026
3 checks passed
ryanwyler pushed a commit to gignit/opencode that referenced this pull request Jan 6, 2026
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