bookmark macro not woking as expected

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

bookmark macro not woking as expected

Post by Ralf_Reddings »

I am trying to define three macros for three bookmarks:
  • Macro is
    name^:
    , search term
    startwith:name:
  • Macro is
    name$:
    , search term
    endwith:name:
  • Macro is
    name$^:
    , search term
    exact:name:

In all of the bookmarks the only things that should is the search term, nothing else.

But searching
name$:book
returns items like
bookmarks
,
books
,
notebooks
etc. Same for the
name^:
macro. The
name$^:
does not work at all, no items are shown in results.

directly searching with
exact:name:book
,
endwith:name:book
,
startwith:name:
or executing the bookmarks from the bookmarks
menu works fine.

Just to be sure I tried "red" as a macro to see if the "$" or "^" were interfering. Nope, still not working.

PS: I know this is doable with
regex:
but I want to build these macros as my own personal syntax.

Here is how my set up looks:

Image


I am on the latest 1.5 beta
Any help would be greatly appreciated!
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: bookmark macro not woking as expected

Post by therube »

(Without looking) did you try escaping the ^ or $ symbols?

So maybe name\^ or name&excl: or "name^" ... ?
void
Developer
Posts: 16776
Joined: Fri Oct 16, 2009 11:31 pm

Re: bookmark macro not woking as expected

Post by void »

You will need to add $param: to your searches.

Please try the following searches:
  • Macro is
    name^:
    , search term
    startwith:name:$param:
  • Macro is
    name$:
    , search term
    endwith:name:$param:
  • Macro is
    name$^:
    , search term
    exact:name:$param:


Without $param: the parameter passed to a macro is treated as a separate search term.
Ralf_Reddings
Posts: 120
Joined: Fri Mar 24, 2023 4:53 pm

Re: bookmark macro not woking as expected

Post by Ralf_Reddings »

That did it, I have no idea about "$param". Thank you.
Post Reply