path-or-comment:

Discussion related to "Everything" 1.5 Alpha.
Post Reply
jacbian
Posts: 2
Joined: Fri Oct 28, 2022 7:05 am

path-or-comment:

Post by jacbian »

Dear Void,

I have added the extended properties (using FileMetaAssociationManager) to .pdf file, and tried the filter " <search:> | tags:<search:> " mentioned in this page. Similarly I also tried "<search:> | comment:<search:>" as I found Comment is more convenient and flexible than Keywords (Tags).

So, let's take <search:> | comment:<search:> as the example for the following discussion.
With this filter, when we input: word1 word2 word3 ..., the returned results demonstrate that all these words must be all inside filepath or all inside comment, but I want that word* can be either in filepath or comment.
Basically, it is to make the comment behaves like a part of the file name.

How can we achieve such a filter? Could you add new macro like path-or-comment: and path-or-tags:?
Last edited by jacbian on Mon Aug 07, 2023 5:39 am, edited 1 time in total.
void
Developer
Posts: 16669
Joined: Fri Oct 16, 2009 11:31 pm

Re: path-or-comment:

Post by void »

Moved from Properties.

Please try creating a filter to search the filename or comments:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to:
    Filename or Comments
  • Change the Search to:
    #replaceterms:#(:search:#):,#(:<#term:|comment:#term:>#):
  • Change the Macro to:
    filename-or-comment<search>
  • Click OK.
Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.
jacbian
Posts: 2
Joined: Fri Oct 28, 2022 7:05 am

Re: path-or-comment:

Post by jacbian »

Works perfectly like a charm. Thank you so much! :D

It will be interesting to decode your grammar.
Post Reply