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

match against unix file path [windows] (#5414) #6564

Closed

Conversation

JackMordaunt
Copy link

@JackMordaunt JackMordaunt commented Apr 3, 2023

This commit introduces a change to the Atom, whereby '/' are replace with '\' on Windows. This allows the user to type in unix style paths and have it successfully match against Windows file paths.

Fixes #5414

demo.out.mp4

This commit introduces a change to the Atom, whereby '/' are replace
with '\' on Windows. This allows the user to type in unix style paths
and have it successfully match against Windows file paths.

I would have preferred to handle this in the matching logic, however
the fuzzy match api doesn't seem to offer a way to say "treat A like B".

Signed-off-by: Jack Mordaunt <[email protected]>
Copy link
Member

@pascalkuthe pascalkuthe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use the fuzzy matching infrastructure for lits of different pickers. Not all of which are paths sk this should be something specific to global seadch/file picker (where we only match paths) and not added inside the core fuzzy matching code

@pppKin
Copy link
Contributor

pppKin commented Aug 30, 2023

Also for consistency might as well display the paths with forward slashes in file picker/search result picker.

@pascalkuthe
Copy link
Member

going to close this one out as the picker has been rewritten since this one was made. I also don't see us going forward with this approach. Thank you fro contributing!

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.

Support forward slash in fuzzy-finder etc. on Windows
3 participants