[Solved] Match Case for drive letter?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
w64bit
Posts: 233
Joined: Wed Jan 09, 2013 9:06 am

[Solved] Match Case for drive letter?

Post by w64bit »

1315a
Match Case OFF, search for d: *.txt (files are listed)
Match Case ON, search for d: *.txt (d: is not in caps, so nothing is displayed)
Match Case ON, search for D: *.txt (files are listed)

I know that this is correct but maybe Match Case should ignore drive letters?
Last edited by w64bit on Fri May 26, 2023 6:59 am, edited 3 times in total.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Match Case for drive letter?

Post by raccoon »

I agree, Match Case should ignore drive letter capitalization since it has no case. Though I don't know how economical this would be, as it will require identifying what component of every substring might or might-not be a drive letter.
Thy Grand Voidinesss
Posts: 606
Joined: Wed Jun 01, 2022 5:01 pm

Re: Match Case for drive letter?

Post by Thy Grand Voidinesss »

raccoon wrote: Tue Aug 02, 2022 4:04 pm [...] it will require identifying what component of every substring might or might-not be a drive letter.
Operating system needs to have that info, right? So Everything could check how [at least the current] list of volumes looks like in a given moment?
void
Developer
Posts: 15376
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Case for drive letter?

Post by void »

What about:

case:c:\windows\

Should this match C:\WINDOWS\ ?


Should this only work for drive letters?
Do I ignore case only for the drive letter?

so c:\WINDOWS matches C:\WINDOWS?



I'm thinking the best option is to ignore case on the drive letter only..
Folders can be case sensitive on Windows 10+
Drive letters are always A-Z
(I've put this on my TODO list)
Thy Grand Voidinesss
Posts: 606
Joined: Wed Jun 01, 2022 5:01 pm

Re: Match Case for drive letter?

Post by Thy Grand Voidinesss »

void wrote: Wed Aug 03, 2022 2:55 am [...]
Drive letters are always A-Z
[...]
That is what I had fought initially. But then I started thinking, if there is a way to increase the number of volumes, when you run out of letters of English alphabet- maybe with names like AA, AB, AC etc.?


This issue could be either ignored as a niche one - or dug into. Here are some links:

https://stackoverflow.com/a/4652637/15307703

https://www.techrepublic.com/article/us ... e-letters/

https://askleo.com/26_drives_is_there_a ... n_windows/
Last edited by Thy Grand Voidinesss on Mon Aug 29, 2022 1:10 pm, edited 2 times in total.
NotNull
Posts: 5261
Joined: Wed May 24, 2017 9:22 pm

Re: Match Case for drive letter?

Post by NotNull »

Thy Grand Voidinesss wrote: Wed Aug 03, 2022 1:50 pm [..] if there is a way to increase the number of volumes, when you run out of letters of English alphabet- maybe with names like AA, AB, AC etc.?
Long story short: No.
horst.epp
Posts: 1345
Joined: Fri Apr 04, 2014 3:24 pm

Re: Match Case for drive letter?

Post by horst.epp »

Running out of drive letters means one should use mount points.
NotNull
Posts: 5261
Joined: Wed May 24, 2017 9:22 pm

Re: Match Case for drive letter?

Post by NotNull »

Exactly! "C:\mount\Appliances manuals" is easier recognizable than "Q:" too :)

(mapped network shares is a different story, though)
w64bit
Posts: 233
Joined: Wed Jan 09, 2013 9:06 am

Re: Match Case for drive letter?

Post by w64bit »

void wrote: Wed Aug 03, 2022 2:55 am I'm thinking the best option is to ignore case on the drive letter only.
Folders can be case sensitive on Windows 10+
Drive letters are always A-Z
(I've put this on my TODO list)
Any news regarding this change?
Thank you
void
Developer
Posts: 15376
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Case for drive letter?

Post by void »

The next alpha update will ignore case when searching for drive letter + ':'

For example:

case:c:
will match C:\WINDOWS


However, you must specify the correct case when using full paths.
case:c:\WINDOWS will not match C:\WINDOWS

You can use case:name:c: if you need to match case.
void
Developer
Posts: 15376
Joined: Fri Oct 16, 2009 11:31 pm

Re: Match Case for drive letter?

Post by void »

Everything 1.5.0.1347a will now ignore case when searching for drive letter + ':'

For example:
case:c: will match files on the C: drive.
Post Reply