How to find folders with a certain word and not a connected part

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Thy Grand Voidinesss
Posts: 606
Joined: Wed Jun 01, 2022 5:01 pm

How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

I need to single out all folders than have just
info
anywhere in them as a word i.e. disregard all that have e.g.
information
or
install-info
nor

Code: Select all

959492.info.52348527

How can I do this?
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

ww:info

ww: = whole words



-or-



Enable Match Whole Words from the Search menu and search for:

info



-or-



regex:\binfo\b

regex: = enable regular expressions

\b = word boundary
Thy Grand Voidinesss
Posts: 606
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

Neither of these methods seem to work, because I am still being shown for example folders

Code: Select all

addon@ytdownloader.info
https+++www.youtube.com^partitionkey=%28https%2cskladchik.info%29
Sound Blaster X4 INFO_files
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

space breaks only? -no punctuation?

Please try the following:

folder:regex:"(\s|^)info(\s|$)"

folder: = folders only.
\s = space.
| = OR.
^ = start of filename.
$ = end of filename.
Thy Grand Voidinesss
Posts: 606
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

void wrote: Sun Jan 28, 2024 12:11 pm [...]
folder:regex:"(\s|^)info(\s|$)"
[...]
This seems to work i.e. those three folders are no longer shown to me


Thus such question arises: how should Match Whole Words work, both through

Main Menu > Search > Match Whole Words

and CTRL+F shortcut? Is it not working how it should just for me [and I need to change some setting] or did I just gave you examples that need to be accounted for [i.e. an update is needed]?
Last edited by Thy Grand Voidinesss on Sun Apr 14, 2024 3:59 pm, edited 1 time in total.
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

The standard is to treat spaces and punctuation as word breaks.

Everything treats spaces and punctuation as word breaks.
The only non-standard character Everything treats as a word break is an underscore: _



Everything will treat info in the following as a word:

959492.info.52348527

The dots (.) are punctuation.
info is surrounded by punctuation so it is treated as a word.



Use regex if you need more control for word matching.



Main Menu > Search > Match Whole Words
and
Ctrl + F > Match Whole Words
will work the same way. (treat spaces and punctuation as word breaks)
Thy Grand Voidinesss
Posts: 606
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

Maybe my train of thought is wrong here but as there already exists option

Main Menu > Search > Ignore Punctuation

then one might think that only after selecting it the option

Main Menu > Search > Match Whole Words

would result with e.g.

Code: Select all

959492.info.52348527
being found when plain

Code: Select all

info
is entered in the Search Edit box. But if this is the standard approach [to treat not only spaces but also punctuation signs as word breaks] then I would suggest adding of a new option named something like

Main Menu > Search > Match Whole Words Without Any Additions

which would eliminate from results all cases when the searched for word has any sign adjacent to it, including the

Code: Select all

_
sign - but with exception of all kinds of white spaces. But then again: if such option will be entitled Without Any then it would imply also lack of spaces- thus some other / better description would be needed for what I am proposing

And then there is of course the issue of the "real" dot that is separating filenames from their extensions
Last edited by Thy Grand Voidinesss on Wed Apr 24, 2024 11:29 am, edited 1 time in total.
Thy Grand Voidinesss
Posts: 606
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

Do you void have any thoughts about that last input from me?
void
Developer
Posts: 15352
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to find folders with a certain word and not a connected part

Post by void »

Everything treats spaces and punctuation as word breaks.

I will consider an option to match words with space breaks only.
Thank you for the suggestion.



For now, use regex: for more control, for example:

folder:regex:stem:"(\s|^)info(\s|$)"

Use stem: to match the name without the extension.



Consider adding the following filter from Search -> Add to filters:
Name: Match Whole Words Without Any Additions
Search: #[REPLACETERMS:$param:,"regex:stem:(\s|^)#[REGEXESCAPE:#TERM:#]:(\s|$)"#]:
Thy Grand Voidinesss
Posts: 606
Joined: Wed Jun 01, 2022 5:01 pm

Re: How to find folders with a certain word and not a connected part

Post by Thy Grand Voidinesss »

void wrote: Tue Apr 23, 2024 11:32 pm Everything treats spaces and punctuation as word breaks.

I will consider an option to match words with space breaks only.
I sure wil be looking forward to it. Because this
void wrote: Tue Apr 23, 2024 11:32 pm Consider adding the following filter from Search -> Add to filters:
Name: Match Whole Words Without Any Additions
Search: #[REPLACETERMS:$param:,"regex:stem:(\s|^)#[REGEXESCAPE:#TERM:#]:(\s|$)"#]:
does work - but is yet another Filter workaround that I will have to remember that I have and for what reason exactly / remember to use it when once more I will discover that the Search options do "not" work. And of course it is impossible to use this Filter with some other one at the same time - to which a workaround would be of course to make it available in my Everything also in form as a Bookmark. But then again: this would be extending the amount of additional workarounds; plus a Bookmark is less convenient than a Filter as it clutters Search Edit when picked
Post Reply