Search Commands

Discussion related to "Everything" 1.5 Alpha.
Post Reply
void
Site Admin
Posts: 7233
Joined: Fri Oct 16, 2009 11:31 pm

Search Commands

Post by void » Mon May 24, 2021 7:32 am

Everything 1.5 search commands.

To use search commands, type in one of the following commands in the search box and press ENTER:



about:
Show the about dialog.


about:about
Show this help.


about:config
Open the user Everything.ini
Monitors the Everything.ini for changes and will notify user to reload if changed.


about:credits
Show the Everything credits.


about:exe
about:exe-location
Open the Everything.exe file location.


about:db
Show database statistics.


about:db-location
Open the Everything.db file location.


about:debug-log
Open the Everything Debug Log.txt file location.


about:home
Load the home search


about:ini-location
Open the Everything.ini file location.


about:journal
Show the Index Journal.


about:license
about:licence
Show the Everything license


about:preferences
about:options
about:settings
Show the options window


/verbose
Enable verbose debug logging.


/debug
Toggle debug mode.


/cls
Clear the debug console.


/debug-log
/start-debug-logging
Enter debug mode and log to Everything Debug Log.txt


/stop-debug-logging
Exit debug mode and show the Everything Debug Log.txt


/rebuild [path]
/reindex [path]
Force a rebuild for all indexes or the specified index.


/rescan [path]
/update [path]
Rescan all FAT, network drive and folder indexes or the specified FAT, network drive or folder index.


/quit
/exit
Exit Everything.


/quit-now
/exit-now
Exit Everything without saving settings and data.


/restart
Restart Everything.


/restart-debug-log
Restart Everything in debug logging mode.


/restart-now
Restart Everything without saving settings and data.


/close
Close the active search window.


/close-all
Close all search windows.


/help
Show Everything help.


/monitor-pause
Stop updating results and continue monitoring changes to indexes.


/monitor-resume
/monitor-start
Update results to reflect changes to indexes.


/monitor-stop
Stop monitoring changes to indexes.


/config-save [filename]
Save configuration.


/config-load [filename]
Load configuration.


/eval <expression>
/=<expression>
Evaluate expression and set the search to the result.


/save-db
Save the database to disk.


/delete-db
Delete the database from disk.


/load <filename>
Load a search from a text/plain file.


/define <name>=<search>
Define a macro.
For example:
/define foo=bar
When searching for foo: it is now replaced with bar


/undef <name>
Undefine a macro.


/<ini-setting-name>=<value>
Set the configuration key to a value.


/expand <text>
/#preprocessor-function:<text>
Set the search to the result from preprocessor expansion.
For example:
/#clipboard:
Search Preprocessor


Dashes (-) in commands can be omitted.

Everything 1.4 search commands

Stamimail
Posts: 818
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search Commands

Post by Stamimail » Mon May 24, 2021 11:10 am

1. I think "Search Commands" info-window is missing under Help menu.
2. Consider make the help info-windows in one info-window separated to tabs:
Search Syntax | Search Commands | Regular Expression Syntax | ...

3. Consider make hyperlinks in the info-window, like:

about:exe-location
Open the Everything.exe location.

Click on this will "Open the Everything.exe location" in WIndows Explorer.

about:home
Search with the home search.

Click on this will change Evetyhing search to "Search with the home search".

I guess these hyperlinks means:
Copy/Paste the clicked search command in the Search Edit and press Enter. (Although some of the commands can be done even without changing the Search Edit)

void
Site Admin
Posts: 7233
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void » Tue May 25, 2021 8:05 am

Thank you for the good ideas Stamimail,
I think "Search Commands" info-window is missing under Help menu.
I have added "Search Commands" to the Help menu for the next alpha update.

I would consider "Search Commands" an advanced feature which is generally not used every day.
Customizing menus and hiding advanced features is still on my TODO list.
2. Consider make the help info-windows in one info-window separated to tabs:
Search Syntax | Search Commands | Regular Expression Syntax | ...
I will consider doing this, or have hyperlinks at the top of each help page to switch between the different windows.
3. Consider make hyperlinks in the info-window, like:
Rich edit support (with hyperlinks) for help pages is on my TODO list.
I will consider executing search commands from hyperlinks.

Thanks for the suggestions.

tuska
Posts: 412
Joined: Thu Jul 13, 2017 9:14 am

Re: Search Commands

Post by tuska » Tue May 25, 2021 8:48 am

Menu "Help"
I also have a wish regarding saving the window size.

The window size can be changed/adjusted, but after the next call of one of the following menu items in the "Help" menu
the predefined window size will also be reset, namely
  1. Search Syntax
  2. Regex Syntax
  3. Search Preprocessor
  4. Command Line Options
  5. Search Commands (next alpha update)
If one could save the window size for the next access, e.g. analogous to the "Organise Search History" window,
this would have the advantage that much more information would be available immediately ("at a glance").

menes
Posts: 8
Joined: Wed Apr 21, 2021 10:26 am

Re: Search Commands

Post by menes » Tue May 25, 2021 12:57 pm

Hello,

I just created some bookmarks cause I found these commands pretty handy. The thing is that when I select the appropriate bookmark the action is not executed, I have to press enter. I saved another search as a bookmark and when I selected it the action executed immediately. Is this by design? Am I missing something on the bookmark setting? (though for the life of me I could not figure what this would be)

void
Site Admin
Posts: 7233
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void » Wed May 26, 2021 10:06 am

I have added to my TODO list to save the help windows position and size.

Bookmarks currently do not execute search commands.
I will consider doing this.

Thanks for the suggestions.

void
Site Admin
Posts: 7233
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Commands

Post by void » Fri May 28, 2021 8:04 am

Everything 1.5.0.1262a adds the /expand and /#preprocessor-function: search commands.

Everything 1.5.0.1262a will now execute search commands when loading bookmarks.

Bookmark search command examples:
/quit
/#clipboard:
/#element:<"Red;Green;Blue",;,#randbetween:<1,3>>
/#year:<#now:>-#text:<#month:<#now:>,00>-#text:<#day:<#now:>,00>
/rescan D:
/save-db

Everything 1.5.0.1262a will now remember help windows position and size.

Thanks for the suggestions.

tuska
Posts: 412
Joined: Thu Jul 13, 2017 9:14 am

Re: Search Commands

Post by tuska » Fri May 28, 2021 11:22 am

void wrote:
Fri May 28, 2021 8:04 am
Everything 1.5.0.1262a will now remember help windows position and size.

Thanks for the suggestions.
Thanks for the prompt implementation! :)
(If necessary, I also use the "Textify" tool and EmEditor to search the help).

Stamimail
Posts: 818
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search Commands

Post by Stamimail » Fri May 28, 2021 12:45 pm

tuska wrote:
Fri May 28, 2021 11:22 am
(If necessary, I also use the "Textify" tool and EmEditor to search the help).
Adding a SearchBar to Help info-window is an idea.
What kind of Search are you using:
a Filter Bar - like in Everything Search
or
a Find Bar - like Ctrl+F in Web Borwsers
?
(I hope I'm using the terminology correctly)

tuska
Posts: 412
Joined: Thu Jul 13, 2017 9:14 am

Re: Search Commands

Post by tuska » Fri May 28, 2021 1:13 pm

2Stamimail

This is currently my procedure - only for longer help texts - in Everything:
  • I extract with Textify the text from the Everything-Help into the clipboard [Ctrl+right mouse button <- adjustable],
    Tool "Textify" - Summary (english)
  • then I click in Textify on the button I created for EmEditor (command=EmEditor.exe /i)
  • EmEditor opens and the text from the clipboard is pasted
  • For longer Everything help texts I then search in EmEditor (Find Toolbar, Filter Toolbar).
I think if one could simply press CTRL+F in the displayed Everything help and do a search, then that would be an advantage.

EDIT:
Just now I realize that this is not a good idea, because Textify cuts off the text after 4 096 characters -
"Search Preprocessor" has much more text!
RaMMicHaeL says: November 20, 2019 at 9:47 wrote:If you’re talking about the amount of characters Textify can grab, the limit is imposed by the target program, not Textify.
See the discussion here: https://rammichael.com/textify/comment- ... mment-8942
RaMMicHaeL says: November 20, 2019 at 2:49 pm wrote:... It’s up to the target program, Textify is not responsible for the limit and cannot remove it. ...
See also: https://rammichael.com/textify/comment- ... ment-12581 - May 28, 2021 at 1:29 pm
In the future I will mark the help text with CTRL+A, press CTRL+C and then paste it into EmEditor (CTRL+V).

menes
Posts: 8
Joined: Wed Apr 21, 2021 10:26 am

Re: Search Commands

Post by menes » Tue Jun 01, 2021 8:48 am

void wrote:
Fri May 28, 2021 8:04 am
Everything 1.5.0.1262a adds the /expand and /#preprocessor-function: search commands.

Everything 1.5.0.1262a will now execute search commands when loading bookmarks.

Bookmark search command examples:
/quit
/#clipboard:
/#element:<"Red;Green;Blue",;,#randbetween:<1,3>>
/#year:<#now:>-#text:<#month:<#now:>,00>-#text:<#day:<#now:>,00>
/rescan D:
/save-db

Everything 1.5.0.1262a will now remember help windows position and size.

Thanks for the suggestions.
Woa, thanks for the quick implementation! I tested it and it works like a charm!

aviasd
Posts: 135
Joined: Sat Oct 07, 2017 2:18 am

Re: Search Commands

Post by aviasd » Wed Jun 16, 2021 6:47 am

tuska wrote:
Fri May 28, 2021 1:13 pm

[*]I extract with Textify the text from the Everything-Help into the clipboard [Ctrl+right mouse button <- adjustable],
Thanks for this tool recommendation! It looks cool 8-)
I think if one could simply press CTRL+F in the displayed Everything help and do a search, then that would be an advantage.
I agree - when I need to search for something in the help - the current dialog is insufficient and I usually resort to Ctrl+A then paste in Gvim - A search functionality is a good idea and a time saver - The help is getting very big with all the new features...

Post Reply