Treat x char as y char

Have a suggestion for "Everything"? Please post it here.
Post Reply
hakusa
Posts: 18
Joined: Mon Dec 23, 2019 4:50 pm

Treat x char as y char

Post by hakusa »

An option to set underscores as space. Especially in windows there are many underscores and other chars scattered everywhere to make difficult to find what we searching for. A setting like treat x char as y char as well. These rules would be user defined. Also ignoring leading and trailing spaces. Currently if you Edit Filter > Search: "search:" and Macro: <search> then such default functions of Everything becomes obsolote. Some examples states might help search:
snap0000376.jpg
snap0000376.jpg (20.72 KiB) Viewed 6125 times
Type:
star child

And see the results like these by the help of the setting I suggested:
star_child
star__child
star;child
star'child
star.child
Last edited by hakusa on Mon Feb 03, 2020 8:01 pm, edited 2 times in total.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Treat underscores as space

Post by NotNull »

hakusa wrote: Mon Feb 03, 2020 2:17 pm When I type:
star child
If a file/folder name has underscore like
star_child
Show this also in the search results.
That should already be the case. You might have a non-default filter enabled or activated one of the search modifier.

Try searching with these deactivated:
- Go to Menu:Search
- Make sure only "Everything" is enabled, like this:
2020-02-03 18_18_36-Window.png
2020-02-03 18_18_36-Window.png (11.6 KiB) Viewed 6138 times
hakusa
Posts: 18
Joined: Mon Dec 23, 2019 4:50 pm

Re: Treat underscores as space

Post by hakusa »

NotNull wrote: Mon Feb 03, 2020 5:19 pm
hakusa wrote: Mon Feb 03, 2020 2:17 pm When I type:
star child
If a file/folder name has underscore like
star_child
Show this also in the search results.
That should already be the case. You might have a non-default filter enabled or activated one of the search modifier.

Try searching with these deactivated:
- Go to Menu:Search
- Make sure only "Everything" is enabled, like this:

2020-02-03 18_18_36-Window.png
Everything is enabled exactly as you have shown but I'm using this filter settings which is essential for me, it doesn't allow it.
Screenshot:
https://ibb.co/RPx1ny4
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Treat underscores as space

Post by NotNull »

Screenshot (sooner or later that image will no longer be available and this might interest other people later on)
snap0000376.jpg
snap0000376.jpg (20.72 KiB) Viewed 6133 times
:


Your filter translates star child into "star child", meaning the literal text "star child".
Causing the search to change from: "find filenames with star as well as child in their names to:
"find filenames with the text "star child" in their names.

That is one of the limitations of your modified Everything filter.

Workaround:
use "" around you query:
- enable (your modified) Everything filter
- search for
"star child"


That will do a search for ""star child"", finding filenames with star as well as child in their names (as you intended).
hakusa
Posts: 18
Joined: Mon Dec 23, 2019 4:50 pm

Re: Treat underscores as space

Post by hakusa »

NotNull wrote: Mon Feb 03, 2020 6:31 pm Screenshot (sooner or later that image will no longer be available and this might interest other people later on)

snap0000376.jpg:


Your filter translates star child into "star child", meaning the literal text "star child".
Causing the search to change from: "find filenames with star as well as child in their names to:
"find filenames with the text "star child" in their names.

That is one of the limitations of your modified Everything filter.

Workaround:
use "" around you query:
- enable (your modified) Everything filter
- search for
"star child"


That will do a search for ""star child"", finding filenames with star as well as child in their names (as you intended).
For each search using quote marks is impossible. But maybe a setting like treat x char as y char as well. These rules would be user defined. Some examples states might help search:

Type:
star child

And see the results like these by the help of the setting I suggested:
star__child
star;child
star'child
star.child
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Treat underscores as space

Post by NotNull »

Ohh ... this was a SUGGESTION. Totally missed that ...
Sorry!

Nothing to see here; please move on!
hakusa
Posts: 18
Joined: Mon Dec 23, 2019 4:50 pm

Re: Treat underscores as space

Post by hakusa »

NotNull wrote: Mon Feb 03, 2020 7:00 pm Ohh ... this was a SUGGESTION. Totally missed that ...
Sorry!

Nothing to see here; please move on!
Your help is very valuable. By your post I've learnt the macro modification caused the problem. Thank you & Best Regards
Post Reply