/ search commands

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
void
Site Admin
Posts: 4936
Joined: Fri Oct 16, 2009 11:31 pm

/ search commands

Post by void » Mon Nov 14, 2016 6:37 am

Search commands are available in Everything 1.4.1.802b or later.

To use search commands, type in one of the following commands in the search box and press ENTER:
about:
  • Show the about dialog.
about:config
  • Open the Everything.ini
about:credits
  • Show the Everything credits
about:license
about:licence
  • Show the Everything license
about:home
  • Load the home search
about:preferences
about:options
  • Show the options window
/command <ID>
  • Run the specified UI ID command
/debug
/console
  • Toggle the debug console.
/debug_log
  • Start debug logging.
/verbose
  • Toggle the showing of verbose debugging information in the debug console.
/rebuild
  • Force a rebuild.
/update <path>
  • Update a folder index.
/quit
/exit
  • Exit Everything.
/close
  • Close the Everything search window.
/help
  • Show Everything Help.
/config_save [filename]
  • Export all settings
/config_load [filename]
  • Import settings
/ini_option <value>, /ini_option=<value>
  • Set the ini_option, ini_option can be any ini key name.
/ini_option
  • Display the current setting for ini_option in the status bar.
For example:
To enable menu_folders without exiting Everything, changing the Everything.ini and restarting Everything, type in the following search and press Enter:
/menu_folders 1

Notes: changing certain ini options requires a restart.

TODO:
/script lua script ...

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

Re: / search commands

Post by Stamimail » Mon Nov 14, 2016 10:20 am

1. You gave an example of "menu_folders". I couldn't find it in ini_option help.
2. Why wouldn't it better to equalize the syntax to what is in INI:
/menu_folders=1

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

Re: / search commands

Post by void » Mon Nov 14, 2016 10:27 am

1. You gave an example of "menu_folders". I couldn't find it in ini_option help.
The ini page needs updating, I'm working on it for the final Everything 1.4 release.
2. Why wouldn't it better to equalize the syntax to what is in INI:
/menu_folders=1
Everything uses the standard console input:
/command parameters

I've added support for /command=parameters for the next release, thanks.

froggie
Posts: 132
Joined: Wed Jun 12, 2013 10:43 pm

Re: / search commands

Post by froggie » Mon Nov 14, 2016 3:32 pm

If I understand correctly

Code: Select all

/ini_option <value>

    ini_option can be any ini key name.
is persistent (it updates the ini file)

How about adding "/ini_option ? " to display the current value of ini_option

How about putting the ini file in the same order as the ini page, with occasional comments in the file that match the ones in the page

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

Re: / search commands

Post by void » Wed Nov 16, 2016 7:44 am

The Everything.ini is updated on exit.

I would prefer if users changed these ini options in Everything now, as changing the Everything.ini can be daunting if you don't know how it works.
It's easier to ask a user to enter in the search: /command than to exit Everything, open their Everything.ini, find the ini option, change it, save changes and restart Everything..

What I would like ultimately is a about:config search command that lists all options, so you can see the current settings, default settings and the ability to change settings.

/ini_option ? is a good idea, I'm not sure how I would display this result. Maybe it could be shown in the result list until another search is performed.
Maybe it could be displayed in the status bar for a couple seconds.

I've added about:config to open the Everything.ini for the next beta update for now..

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

Re: / search commands

Post by void » Wed Nov 16, 2016 11:30 am

Added search commands in 806b:

about:
about:config
about:credits
about:license, about:licence
about:home
about:preferences, about:options
/debug, /console
/debug_log
/rebuild
/update <path>
/ini_option=<value>
/ini_option

therube
Posts: 2354
Joined: Thu Sep 03, 2009 6:48 pm

Re: / search commands

Post by therube » Wed Nov 16, 2016 12:29 pm

Hmm.

/ conflicts with Options | Search -> Replace forward slashes with backslashes.

I'll take the latter any day over / search.

Option to disable /?
Maybe something like an /exit strategy
BTW, /exit strategy exits rather then searches for \exit strategy ;-).



Maybe an option to use some other character in place of / as the / ?

Was thinking some other illegal filename character, but even with that there could be situations where there could be oddities too, because if you used >, that could conflict with a "›" character (which is legal) that diacritics might pick up on (though that might be a very odd thing to run into?).

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

Re: / search commands

Post by void » Wed Nov 16, 2016 1:17 pm

/ conflicts with Options | Search -> Replace forward slashes with backslashes.
It is a concern of mine too, you can escape these commands with double quotes and they are only activated after pressing enter.
Option to disable /?
Letting the user choose the command character or to disable search commands would probably be the best option.
You might like to use :: or /: or > , I'll add an ini option so you can specify the search command prefix.
that could conflict with a "›" character (which is legal) that diacritics might pick up on (though that might be a very odd thing to run into?).
It's possible, unlikely, but possible.
It could be escaped with double quotes.

therube
Posts: 2354
Joined: Thu Sep 03, 2009 6:48 pm

Re: / search commands

Post by therube » Wed Nov 16, 2016 8:40 pm

Oh, ">" could be potentially a problem too, because > is also used as greater then.

dm:>yesterday


(I wonder what the difference is between dm:today & dm>yesterday ?
Oh, files, generally purposely, dated sometime into the future.
dm:gt:tomorrow. Some funny constructs one can come up with.
And yes, some of this you'd be pushing things to actually run into a problem, but...)

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

Re: / search commands

Post by void » Wed Nov 16, 2016 10:56 pm

dm:>yesterday
This would be fine, search commands must start with the search command prefix.
dm:>quit (+enter would search for dm:>quit, and find nothing)
>quit (+enter would quit)

froggie
Posts: 132
Joined: Wed Jun 12, 2013 10:43 pm

Re: / search commands

Post by froggie » Thu Nov 17, 2016 2:43 am

Nits:
To use search commands, enter in one of the following commands in the search box:
When you do the help for this It might be better as ".........enter in one of the following in the search box and then press ENTER", since enter is not usually used on the Everything command line.

Any About:.... command followed by a space does not work.


How about About:About to list all the About: & / search commands

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

Re: / search commands

Post by void » Thu Nov 17, 2016 7:14 am

Thanks for the nit picking.
When you do the help for this It might be better as ".........enter in one of the following in the search box and then press ENTER"
Changed from:
To use search commands, enter in one of the following commands in the search box
to:
To use search commands, type in one of the following commands in the search box and press ENTER:
Any About:.... command followed by a space does not work.
This is by design, commands must be entered exactly as they appear.
I'll consider eating about: even if there is no valid command.
How about About:About to list all the About: & / search commands
about:about is on my TODO list, I might open a voidtools support wiki page for now.
It will eventually be added as a help window similar to help -> search syntax, or possibly in the result window. I'm trying to avoid adding any text now as I've finalized the localization for Everything 1.4.

I'll improve these search commands more in Everything 1.5, for now I just want a simple way for users to change ini-settings in Everything.

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

Re: / search commands

Post by void » Sun Nov 20, 2016 9:57 am

The search command prefix / can now be changed in Everything 808b or later with the ini option: search_command_prefix

For example, to change the search_command_prefix to >
  • Type in the following search and press ENTER:
    /search_command_prefix=>

Post Reply