How to filter by words inside square brakets?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
galen104
Posts: 2
Joined: Mon Apr 26, 2021 10:07 am

How to filter by words inside square brakets?

Post by galen104 »

I have several markdown file with some tag information saved in the filename inside the square brackets. Here an example:

Code: Select all

name[tag1 tag2].md
I made a macro to filter only markdown files (based on extension) and to list only files.
I want to add the possibility to search only for the tags inside the square brackets, is this possibile?

Thanks.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to filter by words inside square brakets?

Post by void »

Please try creating the following filter:
  • In Everything, from the Search menu, click Add to filters....
  • Change the Name to: md tags
  • Change the Search to: *[*search:*]*.md
  • Change the Macro to: mdtag<search>
  • Click OK.
Use the following search to find a 'tag' in the md filename:

mdtag:tag1 mdtag:tag2

This search is expanded to:
*[*tag1*]*.md *[*tag2*]*.md
galen104
Posts: 2
Joined: Mon Apr 26, 2021 10:07 am

Re: How to filter by words inside square brakets?

Post by galen104 »

Thanks, works great!
Post Reply