[Help] How to create a bookmark macro for `exact:parent-name:`?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
TenTickles
Posts: 3
Joined: Thu Aug 01, 2024 10:03 pm

[Help] How to create a bookmark macro for `exact:parent-name:`?

Post by TenTickles »

I know this is less trivial than a typical macro, but it still might be trivial. I've looked for a solution before and I didn't find one. Also, I'm sorry if this is not the correct board.

I want to define an alias `myalias:` for `exact:parent-name:`, that will allow me to use `myalias:Downloads` instead of `exact:parent-name:Downloads`.

Is there a way to do this? Even a hacky/indirect way to do it?
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: [Help] How to create a bookmark macro for `exact:parent-name:`?

Post by void »

To create a bookmark macro for exact:parent-name:
  • In Everything, from the Bookmarks menu, click Add to bookmarks....
  • Change Name to: Exact Parent Name
    (can be anything you like)
  • Change Search to:
    exact:parent-name:$param:
  • Change Macro to: myalias
  • Click OK.
myalias:foo will now expand to exact:parent-name:foo
NotNull
Posts: 5457
Joined: Wed May 24, 2017 9:22 pm

Re: [Help] How to create a bookmark macro for `exact:parent-name:`?

Post by NotNull »

Alternative solution:
  • In Everything's search bar, type or paste the following

    Code: Select all

    /define myalias2=exact:parent-name:
  • Press ENTER
  • Done
myalias2:foo will now expand to exact:parent-name:foo



/define
/undef
TenTickles
Posts: 3
Joined: Thu Aug 01, 2024 10:03 pm

Re: [Help] How to create a bookmark macro for `exact:parent-name:`?

Post by TenTickles »

I see. Thank you so much to you both, these two answers are truly great! : )
Post Reply