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
How to filter folders with special characters in their name
Re: How to filter folders with special characters in their name
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:.
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 @.
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 @.
Re: How to filter folders with special characters in their name
Thanks therube, but my question was different.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 @.
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
Re: How to filter folders with special characters in their name
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:
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\"