Search Command: /<ini-setting-name>=<value>

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Search Command: /<ini-setting-name>=<value>

Post by Stamimail »

void wrote: Mon May 24, 2021 7:32 am/<ini-setting-name>=<value>
Set the configuration key to a value.
A restart might be required for changes to take effect.
Use ! as the value to toggle the ini setting.
Can we have a table/list with all supported commands?
Telling also which commands work in real time and which require restart, and other notes related.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by Stamimail »

I looked at:
https://www.voidtools.com/support/everything/ini/
viewtopic.php?f=12&t=9994

Still, it's difficult to know which settings are supported to be edited via the Search Bar, what works in real time and what require restart.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Search Command: /<ini-setting-name>=<value>

Post by raccoon »

Well, the can all be edited via search bar, but it'll take some time for anyone to put together a map of which ones require a restart or not.

Type about:config to view every ini setting. They all work in the search bar. You can also edit them in the .ini file directly and Everything will detect when you hit Save in your text editor. A /restart command might still be necessary.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by Stamimail »

Well, they can all be edited via search bar
1. It seems to be a bug. I've reported.

btw,
void, Please add for those a "Not Supported" hint for 3 seconds in the status bar.

2.
but it'll take some time for anyone to put together a map of which ones require a restart or not.
I agree. But the documentation should be done somehow. Maybe wiki or csv table.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by void »

Well, they can all be edited via search bar
Not all ini settings are available from the search box.
Some ini settings are generated when the Everything.ini is saved to disk (such as keyboard shortcuts, fonts and colors)

Any unavailable settings can be changed within the UI. (in other words: unavailable settings will only ever be a UI setting)
All hidden (no UI setting) ini settings are available.


void, Please add for those a "Not Supported" hint for 3 seconds in the status bar.
If the ini setting is not supported, pressing ENTER will move focus to the result list.
If the ini setting is supported, pressing ENTER will focus the search box and select all the text.

/downloads would be a valid search, I'm sure some users would not like to see downloads ini setting not supported when pressing ENTER.

You can press TAB to cycle through ini settings, eg: /search_edit_ <TAB> <TAB>


I agree. But the documentation should be done somehow. Maybe wiki or csv table.
The configuration system needs a rewrite for group policy support.
I will take this into consideration.
Thank you for the suggestion.


There's not many settings that require a restart.
/debug_log=1 is a common one.

For now, assume changing any ini setting with /<ini-setting>= will require a restart.
I will always mention a restart is required (when necessary) when providing instructions to use /<ini-setting>=
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Search Command: /<ini-setting-name>=<value>

Post by raccoon »

void wrote: Thu Nov 04, 2021 11:06 pm/downloads would be a valid search, I'm sure some users would not like to see downloads ini setting not supported when pressing ENTER.
I would not lose any sleep having to type /set ontop=1 instead of /ontop=1 to disambiguate these commands.
Might even allow for /set <option>=<value>[,option2=value2,...]
(The values would be quotesque so you'd use quotes if the value contains a comma. Not many do.)
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by void »

Yes, a /set command might work.
Thank you for the suggestion.

The current ini names shouldn't cause any conflicts.
/ is not a valid Windows filename character.


I have on my TODO list to add a search preprocessor function to set config values, eg: #set-config:<key,value>

It might be useful for bookmarks to set multiple config values:
/#set-config:<key1,value1>#set-config:<key2,value2>#set-config:<key3,value3>...

I haven't found a practical use yet.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Search Command: /<ini-setting-name>=<value>

Post by raccoon »

Aye, possibly useful for instructing a user to "copy and paste this into Everything" to get several configs just the way I like.
But, you could just as easily add an "Import Settings" multi-line editbox dialog for the same copy/paste task.
Or I could tell them to type about:config and Paste these lines at the bottom of the file and click File > Save.

Like I said, not gonna lose any sleep either way. There are existing options.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by void »

Aye, possibly useful for instructing a user to "copy and paste this into Everything" to get several configs just the way I like.
This is a good enough reason to add /#set-config:<key1,value1>#set-config:<key2,value2>#set-config:<key3,value3>...

Another option is to run /config_load
This will prompt for an Everything.ini
This Everything.ini (can be a partial Everything.ini) will be merged with the current config and Everything will restart.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by Stamimail »

If the ini setting is not supported, pressing ENTER will move focus to the result list.
I would not expect this behavior.
I think the behavior should be the same like the supported.
/downloads would be a valid search, I'm sure some users would not like to see downloads ini setting not supported when pressing ENTER.
So here lies the problem. The problem is with syntax. Apparently the choice of / is a bad choice.
In general I think that / (or another character you'll choose) should not affect the results list. It should pop-up an "auto-suggest while typing" like exist in code editors.
You can press TAB to cycle through ini settings, eg: /search_edit_ <TAB> <TAB>
Nice. It can be improved by including all entries that includes the term, no matter if the term is found at the beginning, middle or end of the entry.
It might be useful for bookmarks to set multiple config values:
/#set-config:<key1,value1>#set-config:<key2,value2>#set-config:<key3,value3>...

I haven't found a practical use yet.
Let me explain to you why I started this thread.
I was thinking of an idea to have Style configurations by using Bookmarks and /<ini-setting-name>=<value> .
I was trying to test if Everything supports /<ini-setting-name>=<value> concatenation, like:
/alternate_row_color=1/preview_visible=1/invert_layout=1
So I looked for couple Real Time settings.
So far I have only found the /alternate_row_color=1 setting that works for me in real time.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by void »

Thank you for your reply Stamimail,

/ is a common character used to initiate a command when typing in text.

/ is not a valid filename character on Windows.

/ is very unlikely to conflict with a valid search.

I am open to suggestions for another search command prefix.

You can also customize the search command prefix with:
/search_command_prefix=

You might like to try something like:
/search_command_prefix=::
or
/search_command_prefix:>>>


/search commands are not for general use, they are designed to enable/disable obscure settings only.


So here lies the problem. The problem is with syntax. Apparently the choice of / is a bad choice.
It might be a problem when I port to Linux.

Let me explain to you why I started this thread.
I was thinking of an idea to have Style configurations by using Bookmarks and /<ini-setting-name>=<value> .
I was trying to test if Everything supports /<ini-setting-name>=<value> concatenation, like:
/alternate_row_color=1/preview_visible=1/invert_layout=1
So I looked for couple Real Time settings.
So far I have only found the /alternate_row_color=1 setting that works for me in real time.
I think there's a better approach here.

These should be search functions instead, like sort:Name or View:Thumbnails
For example:

alternate-row-color: preview: invert-layout: some search text...
-or-
no-alternate-row-color: no-preview: no-invert-layout: some search text...

I've put on my TODO list to add all UI settings as search functions.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by Stamimail »

I am open to suggestions for another search command prefix.
Maybe
>
because all of these settings are being added to Search Box when it's empty, and there is no meaning for > when it's in the beginning of the Search Box. (mmm... I noticed it's a valid search that retrieves the mark » )
Also > reminds me pop-up and CMD. :)
You can also customize the search command prefix with:
/search_command_prefix=
I'll try to use the default of the program, make it easier to copy/paste from forum and website help.
These should be search functions instead, like sort:Name or View:Thumbnails
For example:

alternate-row-color: preview: invert-layout: some search text...
-or-
no-alternate-row-color: no-preview: no-invert-layout: some search text...
What's wrong with:
/alternate_row_color=1/preview_visible=0
-or-
invert_layout=1
name_column_width=699
path_column_width=947

I think it will be a mistake to double the syntax and the commands.
Using one syntax (or similar /syntax) is better.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by void »

I will consider > as the default search command prefix.

Thank you for the suggestion.

What's wrong with:
/alternate_row_color=1/preview_visible=0
There's currently no way to escape / for string values.
This would be fine for integer values.

I will consider allowing / or ; or , to delimit lists of integer values.

The syntax was designed to match the ini format.
That is a single line:
key=value



Another method might be to avoid these search commands and show a UI for hidden options.
For example, about:config could bring up a UI with all the ini settings.
This UI would include a search box and inline editing of values.



An common usage for search commands is to enable a hidden setting and restart Everything.
It is very easy to instruct a user to type in /max_threads=1 and /restart without having to go into an options window or edit the config directly.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by Stamimail »

My goal is to take this feature further - to allow creating of Style Configurations (customized) and swapping between them.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by void »

Thank you for the example usage.

I have on my TODO list to add a theme organizer to save/load your own personalized themes (fonts and colors).
Maybe other view settings could be saved here?



Everything 1.5.0.1284a adds alternate-row-color:, folders-sidebar:, invert-layout:, preview:, filters-sidebar: and on-top: search functions.

These search functions are temporary.
Once the search is cleared, the original view is restored.

I recommend adding these searches to a filter.

Please let me know if you would like to see more functions here.


Everything 1.5.0.1284a adds -preview, -folders-sidebar and -filters-sidebar command line options.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by Stamimail »

void wrote: Tue Nov 09, 2021 5:14 am Thank you for the example usage.

I have on my TODO list to add a theme organizer to save/load your own personalized themes (fonts and colors).
Maybe other view settings could be saved here?
I tested. It seems this method only useful when using FIlters.

I attached a better example.
In the ZIP file attached you have 4 images = 4 Style Configurations.
I searched one folder, and then edited the style 4 times.

How it should work?
You want to switch between the Style Configurations by a (Bookmark/Theme...) hotkey:
Shift+1 == 1.bmp
Shift+2 == 2.bmp
Shift+3 == 3.bmp
Shift+4 == 4.bmp

No change for the search. (You want those commands will be sent to Everything program, not to the search)
You want to save/set the columns and their width (and even the Preview width) for each Style Configuration.
These search functions are temporary.
Once the search is cleared, the original view is restored.
It should stay, until a new window is opened, or a HOME command is pressed.

Is it possible to do this in the current version?
Attachments
Style Configurations Example.zip
(1.44 MiB) Downloaded 698 times
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by void »

Thanks for the suggestions Stamimail,

I would need to add a theme or profile or layout manager.
I'll put this on my TODO list.


Currently it is not possible to change the layout with a single action without changing the search.



One possible option is to:
  • Layout your windows as desired
  • Type in the following search and press ENTER:
    /saveconfig
  • Choose a filename to describe the layout and click OK.
  • Repeat for additional layouts.
    One problem with this method is all your settings will be saved.
    You could strip out all the unwanted options and just keep the layout, fonts and colors settings in the Everything.ini.
To load a config file by filename.
  • Type in the following search and press ENTER:
    /loadconfig
  • Select the Everything.ini and click Open.
    Consider using a bookmark with the search: /loadconfig or /loadconfig <Everything.ini>
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Search Command: /<ini-setting-name>=<value>

Post by Stamimail »

Maybe,
Second possible option is to:
Make use of a second bar (under the search bar), that will be used as a command line to Everything, and won't affect the Result List while typing.
Post Reply