-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Feature: Added option to filter items when typing #17339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
d0c7ce5
to
4b76218
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new keyboard typing behavior option to filter items in the file area instead of jumping to files. Users can now choose between "Jump to file" (existing behavior) and "Filter items" (new behavior) in the Advanced settings page.
Key changes:
- Added a new
KeyboardTypingBehavior
enum withJumpToFile
andFilterItems
options - Replaced character-based input handling with key-based input to support filtering
- Integrated filter functionality with the existing filter header UI
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
KeyboardTypingBehavior.cs | New enum defining the two typing behaviors |
IFoldersSettingsService.cs | Added property for keyboard typing behavior setting |
FoldersSettingsService.cs | Implementation of the keyboard typing behavior setting |
AdvancedViewModel.cs | Added UI binding for the new setting in Advanced page |
AdvancedPage.xaml | Added settings card for keyboard typing behavior selection |
BaseLayoutPage.cs | Replaced character input handler with key preview handler to support filtering |
BaseGroupableLayoutPage.cs | Updated to use the new key preview handler |
ShellViewModel.cs | Added automatic filter application and clearing logic |
ModernShellPage.xaml.cs | Removed manual filter handling in favor of data binding |
ModernShellPage.xaml | Changed to use two-way data binding for the filter text box |
MainPage.xaml.cs | Added special handling for Back/Space keys in filter mode |
FilesystemHelpers.cs | Updated restricted characters logic to use Path.GetInvalidFileNameChars() |
ToggleFilterHeaderAction.cs | Added filter clearing when header is hidden |
Resources.resw | Added localized strings for the new feature |
Resolved / Related Issues
To prevent extra work, all changes to the Files codebase must link to an approved issue marked as
Ready to build
. Please insert the issue number following the hashtag with the issue number that this Pull Request resolves.Steps used to test these changes
Stability is a top priority for Files and all changes are required to go through testing before being merged into the repo. Please include a list of steps that you used to test this PR.