Content search number of matches column

Have a suggestion for "Everything"? Please post it here.
b0nk
Posts: 2
Joined: Sun Feb 01, 2026 7:18 pm

Content search number of matches column

Post by b0nk »

Hi!

I very frequently use the lovely content: search and I realized that it would be very useful to be able to see and sort the # of matches per file.

Example:

Code: Select all

content:foo
would find and display a result from the file foo.txt, and if you added the "Matches" column it would show the number of matches of foo found within the file.


Thanks for hearing me out!
void
Developer
Posts: 19901
Joined: Fri Oct 16, 2009 11:31 pm

Re: Content search number of matches column

Post by void »

Thank you for your feedback.

I am considering a content occurrence column.
Thank you for the suggestion.

For now, it can be done with formulas:

Code: Select all

add-column:a a:=STRINGCOUNT(GETPROPERTY($filename:,"content"),"foo")
The number of occurrences of foo is shown in Column A.
b0nk
Posts: 2
Joined: Sun Feb 01, 2026 7:18 pm

Re: Content search number of matches column

Post by b0nk »

void wrote: Mon Feb 02, 2026 12:18 am Thank you for your feedback.

I am considering a content occurrence column.
Thank you for the suggestion.

For now, it can be done with formulas:

Code: Select all

add-column:a a:=STRINGCOUNT(GETPROPERTY($filename:,"content"),"foo")
The number of occurrences of foo is shown in Column A.
Marvelous! :)
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: Content search number of matches column

Post by NotNull »

See also this thread for more options like creating a filter.