Macro search modifiers dont support the "?" prefix

Discussion related to "Everything" 1.5.
Post Reply
Ralf_Reddings
Posts: 142
Joined: Fri Mar 24, 2023 4:53 pm

Macro search modifiers dont support the "?" prefix

Post by Ralf_Reddings »

Code: Select all

from-disk:content:obsidian         #this works, the files with that word are found
?from-disk: content:obsidian       #this works, the files with that word are found

fd:content:obsidian                #this does work, the files with that word are found
?fd: content:obsidian              #this does not work, the files with that word are not found

disk:content:obsidian              #this does work, the files with that word are found
?_disk: content:obsidian           #this does not work, the files with that word are not found
I have both
fd
and
_disk:
defined as macros in my macro file:

Code: Select all

....
"_disk","::from-disk:"
"fd","::from-disk:"
....
is
?
not a prefix used to modify a search modifier to force it to act as "global" or are
?from-disk:
and
from-disk
just two separate modifiers?

am on
Version 1.5.0.1399a (x64)
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: Macro search modifiers dont support the "?" prefix

Post by void »

The ? prefix only works on search modifiers. (not macros)

Please consider changing your macros:

Code: Select all

"_disk","?from-disk:"
"fd","?from-disk:"
and use:

Code: Select all

fd: content:obsidian
_disk: content:obsidian       


I have put on my TODO list to treat simple macro aliases as real search modifiers.
Ralf_Reddings
Posts: 142
Joined: Fri Mar 24, 2023 4:53 pm

Re: Macro search modifiers dont support the "?" prefix

Post by Ralf_Reddings »

Aah, that clarifies things for me. this solution is ideal, thank you;

Code: Select all

"_disk","?from-disk:"
"fd","?from-disk:"
Post Reply