Skip to content

fix(explorer): select the first visible file on initial open - #460

Merged
esmuellert merged 6 commits into
esmuellert:mainfrom
richardgill:investigate-explorer-initial-selection
Jul 25, 2026
Merged

fix(explorer): select the first visible file on initial open#460
esmuellert merged 6 commits into
esmuellert:mainfrom
richardgill:investigate-explorer-initial-selection

Conversation

@richardgill

@richardgill richardgill commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Initial explorer selection used raw Git status order rather than the order displayed by the explorer.

In tree view, directories appear before root-level files, so the initially selected file could appear last. This could also open files excluded by explorer filters (Fixes #416).

Select from the visible tree order while preserving current-file focus when that file is visible, and add regression coverage for list and tree views.

@richardgill
richardgill marked this pull request as ready for review July 20, 2026 14:55
@esmuellert
esmuellert self-requested a review July 22, 2026 19:37
@richardgill richardgill added the Size/M Medium - Write logic, add tests (one evening) label Jul 22, 2026
@esmuellert
esmuellert force-pushed the investigate-explorer-initial-selection branch from 5cd6863 to 3fb2e74 Compare July 25, 2026 06:43
@esmuellert
esmuellert enabled auto-merge July 25, 2026 06:44
@esmuellert
esmuellert merged commit 845cfe3 into esmuellert:main Jul 25, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size/M Medium - Write logic, add tests (one evening)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File excluded in explorer is still opened if it is the top item in git status

2 participants