command-line problem

Discussion related to "Everything" 1.5 Alpha.
Post Reply
fantasynew
Posts: 11
Joined: Wed May 11, 2022 10:18 am

command-line problem

Post by fantasynew »

I saved a search function "tag:" as a bookmark,the name of bookmark is "a"
I typed "everything.exe -bookmark a" in command-line,the code "tag:" be typed in everything.
How to input "tag:keyword" in everything by command-line?
Thanks
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: command-line problem

Post by NotNull »

It would really help if you posted your actual bookmark here ....
Without that, a more general approach:

The most straightforward way would be:

Code: Select all

"c:\path to\everything64.exe" -search tag:""""some keyword""""
If you want to use the "a" bookmarks with parameters, you specify this as a:keyword.
For that you need to define your bookmark similar to the following:

Code: Select all

Name = a
Search = "c:\some folder\"  tag:query:
Macro = a<query>
Now you can search for

Code: Select all

"c:\path to\everything64.exe" -search a:""""some keyword""""
Be aware that files on a possible drive A: are no longer accessible i Everything with this bookmark name, so I suggest to use a different name.


All untested, btw.
fantasynew
Posts: 11
Joined: Wed May 11, 2022 10:18 am

Re: command-line problem

Post by fantasynew »

Thank!
It work well.

Code: Select all

Name = a
Search = "c:\some folder\"  tag:
Macro = a<>
A little problem,if set "tag:query:" ,press hotkey will type "tag:query" in everything.
The correct way is that type"tag:" without "query"
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: command-line problem

Post by void »

A little problem,if set "tag:query:" ,press hotkey will type "tag:query" in everything.
The correct way is that type"tag:" without "query"
This will be fixed in the next alpha update.
Thank you for the issue report.



For now, please consider adding another bookmark without the macro:
Name = Tag Keyboard Shortcut
Search = "c:\some folder\" tag:

Remove the shortcut key from your bookmark called a and add it to Tag Keyboard Shortcut.
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: command-line problem

Post by void »

Everything 1.5.0.1314a will now replace the search parameters with empty text when opening a bookmark.


For example, take the following bookmark:

Name: My Bookmark
Search: tag:query:
Macro: tagmacro<query>

When this bookmark is opened, instead of setting the search to:
tag:query:

The search is now set to:
tag:
Post Reply