Is number: expected to highlight the number?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 5141
Joined: Thu Sep 03, 2009 6:48 pm

Is number: expected to highlight the number?

Post by therube »

Is number: expected to highlight the number (search term)?
number:2022

finds the number, 2022, but "2022" is not highlighted in the search results.
void
Developer
Posts: 17301
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is number: expected to highlight the number?

Post by void »

Is number: expected to highlight the number (search term)?
Current, no.
I have also run into the limitation too with number:2021 matching some random filename with a long hex value and not immediately seeing where the match occurs.

I have put this on my TODO list.
Thanks for the suggestion.
void
Developer
Posts: 17301
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is number: expected to highlight the number?

Post by void »

Everything 1.5.0.1287a will now highlight matches from number:
harryray2
Posts: 1118
Joined: Sat Oct 15, 2016 9:56 am

Re: Is number: expected to highlight the number?

Post by harryray2 »

I can't seem to get this to work..Is there an entry I need to adjust?
therube
Posts: 5141
Joined: Thu Sep 03, 2009 6:48 pm

Re: Is number: expected to highlight the number?

Post by therube »

You need to have;
Everything | Options | View -> Show highlighted search terms
enabled.
With that,
number:2022
, (now) highlights "2022" in the results list.
harryray2
Posts: 1118
Joined: Sat Oct 15, 2016 9:56 am

Re: Is number: expected to highlight the number?

Post by harryray2 »

I've already got that enabled but I've never really noticed before, but none of my search terms are highlighted.
therube
Posts: 5141
Joined: Thu Sep 03, 2009 6:48 pm

Re: Is number: expected to highlight the number?

Post by therube »

In the screenshot here, viewtopic.php?p=41621#p41621, the search was "audio: Tull", & "audio:" are highlighted (.mp3, .m4a, ...) as is "Tull".


(Matter of fact, because of the highlighting colors & because I rarely use audio: directly, I never particularly realized that specifying audio: caused audio extensions to become highlighted, & I thought that was a change, or new, & not particularly wanted.)
void
Developer
Posts: 17301
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is number: expected to highlight the number?

Post by void »

To enable search term highlighting:
  • In Everything, from the Tools menu, click Options.
  • Click the View tab on the left.
  • Check Show highlighted search terms.
  • Click OK.
To customize highlighting colors:
  • In Everything, from the Tools menu, click Options.
  • Click the Fonts and colors tab on the left.
  • Change Item to: Result List.
  • Select Highlighted.
  • Set a foreground color.
  • Set a background color.
  • Click OK.
(Matter of fact, because of the highlighting colors & because I rarely use audio: directly, I never particularly realized that specifying audio: caused audio extensions to become highlighted, & I thought that was a change, or new, & not particularly wanted.)
highlighting only occurs when you type in the macro.
No highlighting occurs when the filter is active.

Consider prefixing your filters search with nohighlight:

For example, change your audio filter search to:
nohighlight:ext:aac;ac3;aif;aifc;aiff;amr;ape;au;cda;dts;fla;flac;it;m1a;m2a;m3u;m4a;mid;midi;mka;mod;mp2;mp3;mpa;ogg;opus;ra;rmi;spc;rmi;snd;umx;voc;wav;weba;wma;xm

Now, when searching for audio: the extension is no longer highlighted.
harryray2
Posts: 1118
Joined: Sat Oct 15, 2016 9:56 am

Re: Is number: expected to highlight the number?

Post by harryray2 »

I already have show highlighted search terms enabled.
void
Developer
Posts: 17301
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is number: expected to highlight the number?

Post by void »

Normally, Everything will only bold search terms.

Does setting a highlight color help:
  • In Everything, from the Tools menu, click Options.
  • Click the Fonts and colors tab on the left.
  • Change Item to: Result List.
  • Select Highlighted.
  • Set a foreground color.
  • Set a background color.
  • Click OK.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Is number: expected to highlight the number?

Post by raccoon »

I can report that 1288 'number:' matches highlight correctly for me, and (rather unexpectedly) highlights all matching occurrences in the both the object name and path columns. I remember an earlier implementation described that number: matches would succeed-then-giveup on the first matching number found in the object and path.

I don't use any fancy fonts, bolds, coloring or themes. Stock defaults.
Last edited by raccoon on Thu Dec 09, 2021 11:40 pm, edited 1 time in total.
void
Developer
Posts: 17301
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is number: expected to highlight the number?

Post by void »

(rather unexpectedly) highlights all matching occurrences in the both the object name and path columns.
number: supports the path: search modifier. -Do you have Match Path enabled?
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Is number: expected to highlight the number?

Post by raccoon »

Yes. And my last edit explains why I said "rather unexpectedly." Because you previously stated that 'number:' would "succeed-then-giveup" presumably for computational savings.
void
Developer
Posts: 17301
Joined: Fri Oct 16, 2009 11:31 pm

Re: Is number: expected to highlight the number?

Post by void »

The confusion might come from the older tonumber: search modifier before the recent change.

tonumber: matches the number at the start of the property text/filename.
number: matches the number anywhere in the filename.



to-number:
number:
harryray2
Posts: 1118
Joined: Sat Oct 15, 2016 9:56 am

Re: Is number: expected to highlight the number?

Post by harryray2 »

All of my results are set to bold..not just the part I've searched for. I've turned off bold and now it's showing the the rest of the result in bold, while the search part is normal, rather than the other way around.

I have alternate line search colours enabled, black and blue, the black is doing this whilst the blue isn't.

I'll try to highlight the colours.
Post Reply