-
Notifications
You must be signed in to change notification settings - Fork 150
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
File completion in presence of hidden files #407
Comments
@dezifit Thanks for reporting this. Interesting: the problem only happens with the |
Oh, of course... The root causeCommit a648688 on Dec 2, 2020 (more than 2 years ago) isn't hooked up correctly with respect to how it handles Here is what's happening:It has nothing to do with the "hidden file attribute". Instead it's purely about the quirk that in the Windows file system APIs both ❯ md testdir
❯ echo foo>testdir\test
❯ echo foo>testdir\.test
❯ dir /b testdir\te*
test
.test
❯ del testdir\te Invoking
And the Here is the challenge:For people used to how Windows works and how completion normally works in CMD, it's important for But that leads to a conflict:
There is a bug in how the What needs to happenClearly I think the best thing to do is the following:
|
I'm working on this, but it's complicated. I hope to have a fix sometime tomorrow. |
If a subfolder contains a hidden file (say ".test") as well as a regular file with the same name ("test" in this case), a file completion starting from the parent directory just clears the file name (everything after the backslash).
Pressing TAB on
del config\te
results indel config\
. Turning offmatch-hidden-files
doesn't change this behaviour. Maybe there is another setting to prevent this, but having it as default seems wrong.Version: v1.4.3.67deea
The text was updated successfully, but these errors were encountered: