How to filter folders with special characters in their name

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
ravishi
Posts: 11
Joined: Sat May 21, 2022 10:36 am

How to filter folders with special characters in their name

Post by ravishi »

I have some work folders named "@ThisProject' or '! ThatProject', to easily have them at the top of my directory list in file managers.

When I try to set up a filter in Everything to search in such a folder, no results are returned.
I set up my custom filter like this:
In the Search field, I added some directories: c:\Users\myname\Documents\@ThisProject\|u:\Sounds\
In the Macro field, I added: audio

The filter doesn't work...
What am I doing wrong? Do I need to enclose special characters in some brackets or something (unsuccessfully tried {})?

Thanks
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: How to filter folders with special characters in their name

Post by therube »

If this was done in; Search | Filter, then the "macro" is simply a name that is used in place of typing out the search itself.
So your "audio" performs a search on "c:\Users\myname\Documents\@ThisProject\|u:\Sounds\".
(And does not look for audio:, as in the filter, files.)

If you wanted to use a Filter (& you wanted to find "audio" files), you could add audio: to your search, so:
<c:\Users\myname\Documents\@ThisProject\|u:\Sounds\> audio:
.


Or you could set up a Bookmark, with the search being your directories, & in the Filter: box, you'd select 'Audio', which would accomplish the same thing.
(Can't recall if Filter is in Everything 1.4? If not, the Search | Filter method would be fine.)


BTW, there is nothing "special" about the @.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: How to filter folders with special characters in their name

Post by raccoon »

ravishi wrote: Tue May 24, 2022 1:43 pm In the Macro field, I added: audio
Use a different macro name. audio is already taken.
ravishi
Posts: 11
Joined: Sat May 21, 2022 10:36 am

Re: How to filter folders with special characters in their name

Post by ravishi »

therube wrote: Tue May 24, 2022 3:09 pm If this was done in; Search | Filter, then the "macro" is simply a name that is used in place of typing out the search itself.
So your "audio" performs a search on "c:\Users\myname\Documents\@ThisProject\|u:\Sounds\".
(And does not look for audio:, as in the filter, files.)

If you wanted to use a Filter (& you wanted to find "audio" files), you could add audio: to your search, so:
<c:\Users\myname\Documents\@ThisProject\|u:\Sounds\> audio:
.


Or you could set up a Bookmark, with the search being your directories, & in the Filter: box, you'd select 'Audio', which would accomplish the same thing.
(Can't recall if Filter is in Everything 1.4? If not, the Search | Filter method would be fine.)


BTW, there is nothing "special" about the @.
Thanks therube, but my question was different.

Nevertheless, very useful that I can use the macro. I actually had the string with all audio extensions instead, copied from the default Audio filter (ext:aac;ac3;aif;aifc;aiff;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;ra;rmi;spc;rmi;snd;umx;voc;wav;wma;xm)

My problem is the @ or ! in the title of the folder. I cannot add a folder the name of which contains a special character, unless I enclose it in something, I suppose. What is the syntax?

So this
<c:\Users\myname\Documents\@ThisProject\|u:\Sounds\> audio:

doesn't work because of the @ character. It gives no results
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: How to filter folders with special characters in their name

Post by NotNull »

The exclamation mark ! is part of the Everything syntax. It means NOT: !C:\Windows = NOT C:Windows.

For a literal ! you can enclose your file-/ foldername in double quotes.
If file/foldernames contain a space, it also needs to be enclosed in ""

This should give the desired results:

Code: Select all

audio: "c:\Users\myname\Documents\@ThisProject\" | "u:\My Favourite Sounds\"
Post Reply