Repository navigation
Fix: Select the folder you came from when navigating up on Linux - #184
Merged
MemerGamer merged 1 commit intoOct 13, 2026
Merged
Conversation
The "scroll to the previous folder" logic used a hard-coded backslash separator, so on macOS the computed folder path never matched and going back left nothing selected. Use the platform directory separator instead.
MemerGamer
approved these changes
Oct 13, 2026
MemerGamer
left a comment
Owner
There was a problem hiding this comment.
Thanks @lextm, nice catch! The hard-coded backslash meant the folder you came from was never matched on Linux. I traced the Linux cases (going up one level, and up to /) and they now select the right folder. CI passes. Merging.
36 of 47 tasks
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.
What
Fixes the "scroll to the previous folder when navigating up" behaviour: after entering a folder and going back up, the folder you came from is not selected/centred.
Why
BaseShellPagecomputed the path of the folder to select with a hard-coded backslash separator:On Linux (and macOS) paths use
/, sofolderToSelectwas built with\and never matched any item inFilesAndFolders, leaving nothing selected. Use the platform directory separator instead:This keeps the Windows behaviour (backslash) and fixes Linux, where the setting (
ScrollToPreviousFolderWhenNavigatingUp, default on) had no effect.Notes