Skip to content
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

add support for glob syntax, address issue 50 #51

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

molsonkiko
Copy link
Contributor

@molsonkiko molsonkiko commented Jul 8, 2023

See documentation for Glob class in Glob.cs. Would implement #50.
Note that this is fully backwards-compatible with existing non-fuzzy matching, so it is unnecessary to add a new setting.

Moved some helper functions to MiscUtils.cs (needed for re-use in GlobTester.cs and TestRunner.cs)

Rearranged code in NppNavigateTo.cs in an order that more closely parallels the order in which it is first referenced. Most of the diff in that file is just moving stuff around, and most of the remaining diff is due to the introduction of glob syntax.

Also started to add code for a background worker; it's all commented out now.
I may eventually consider offloading some work to a background worker but currently it doesn't seem super necessary. It is only helpful when dealing with many thousands of files (based on testing with roughly 59k files), but it could be critical in that case for preventing NavigateTo from locking up Notepad++.

This does not appear to break any existing functionality, although I've never really understood how the fuzzy matching is supposed to work so I wouldn't necessarily know if the fuzzy matching wasn't working quite as intended.

See documentation for Glob class in Glob.cs
Note that this is fully backwards-compatible
   with existing non-fuzzy matching, so it is unnecessary
   to add a new setting.

Moved some helper functions to MiscUtils.cs

Rearranged code in NppNavigateTo.cs in an order that
    more closely parallels the order in which it is first referenced.

Also started to add code for a background worker.
I may eventually consider offloading some work to a background worker
    but currently it doesn't seem super necessary.
@young-developer young-developer merged commit 7f82ae6 into young-developer:master Jul 8, 2023
@young-developer
Copy link
Owner

@molsonkiko It looks like after search file list keeps filtered files instead of showing all files. Please could you check it in version 2.6.1.

@molsonkiko molsonkiko deleted the glob_syntax branch July 15, 2023 18:19
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