An example follows.
Cheers, Chris
With Tools > Debug > Config the file "Everything.ini" is opened in an editor.ChrisGreaves wrote: Thu Apr 13, 2023 2:29 pm I choose Tools, Debug, Config and a Notepad.exe copy of the INI file pops up.
Code: Select all
Folder count: 68,220
...
Folders created: 2,811
Folders modified: 259,715
Folders deleted: 1,047
Folders moved: 6
Files created: 31,111Query Count: 2,721The sequence of the entries does not matter. However, when Everything exits and writes its ini-file to disk, it will be in a fixed order (per "module").ChrisGreaves craftfully wrote: Thu Apr 13, 2023 2:29 pm Does the sequence of keys matter to Everything?
For example, suppose I sorted the INI file on the third character in each line - a somewhat random sequence - would Everything collapse in a heap? Probably not.
But to the best of my knowledge there are no "rules" surrounding a developer's use of sequence in INI files.
Some developers make use of named sections within an INI file; some developers check for duplicate keys, most I think do not.
Code: Select all
[First section]
color=blue
color=red
[Second section]
Thanks for this, NotNullNotNull wrote: Thu Apr 13, 2023 3:55 pm... However, when Everything exits and writes its ini-file to disk, it will be in a fixed order (per "module")
So an experimental version of a single INI setting had best be parked at the end of the file if it is to be used.As their is just one INI-section - [Everything] - that means that you can safely add new/changed entries at the end of the INI file and they will be picked up by Everything.
Yes!
Good thinking! (I *knew* I forgot some details ...)ChrisGreaves wrote: Thu Apr 13, 2023 5:00 pm So an experimental version of a single INI setting had best be parked at the end of the file if it is to be used.
But your first comment suggests that Everything will read the INI file into some sort of structure when Everything is loaded, and then re-create the INI file on exit, so that any duplicate keys would be dropped anyway?
It is plain chaos with those INI filesNotNull wrote: Thu Apr 13, 2023 3:55 pm [...]
Suppose a random INI file that looks like the following:The default way ini-files are processed by Windows is that the first entry (color=blue) wins.Code: Select all
[First section] color=blue color=red [Second section]
In Everything, the last entry wins (color=red)
[...]
I don't. All settings are included in the Everything.ini file. No exceptions. That is how it should be. (My opinion, of course)
But apparently not when the title/caption is being changedNotNull wrote: Thu Apr 13, 2023 5:18 pm... Everything will detect that the file has changed and will offer to reload settings from the modified ini-file
Code: Select all
window_title_format=blah blah blahVery strange.
Thanks for this void; I am still on shaky ground here (with my limited understanding), but in general terms, if there is "a common issue with", ought that not to be resolved (in favour of less confusion to the user)? Perhaps that it what is involved in your further comments.void wrote: Fri Apr 14, 2023 3:00 am A common issue with using Tools > Debug > Config or about:config is Everything will only monitor for external changes to your config file AFTER making one of these calls.
After the user makes a change from within Everything, does Everything rewrite the entire INI file back to disk, or only the affected key-value?In the next alpha update, Everything will continue to monitor for external changes to your config file after Everything restarts.
(Technically, Everything will restart with the -watch-config command line option)
I understand. The great advantage of using an application to edit configuration files is that the application can choose to check the new setting for validity.I recommend using search commands to set ini settings:
...
I know the /name=value search command is not very user friendly.
There is work being done on a UI to set any ini setting.
We use scripts to get the results of the Everything GUI into a file list of a file manager.ChrisGreaves wrote: Sat Apr 15, 2023 7:40 pm Right now I suspect that the setting might be useful where Everything is invoked from a third-party application, and Everything is set up to pass the results of a search (which I see as the Result List) back to the third party application which called Everything.
That mythical scenario doesn't work for me, since I believe that on return to the third party application, that application would be maximized ("Never Close, Never Minimize") and thus hide the Everything Window from view.
Thanks for any insight
Chris
Ideally, yes.if there is "a common issue with", ought that not to be resolved (in favour of less confusion to the user)?
Everything stores settings in memory.If a user edited the INI file in Notepad, saved the changes and THEN decided to check the change via the GUI file, the setting would appear unchanged because my application had no reason to think to load the GUI form from the INI file - it has its own Options data structure with which it loads the GUI form before writing the change (if any) to a single key in the GUI form back to the INI file.
The entire ini file.After the user makes a change from within Everything, does Everything rewrite the entire INI file back to disk, or only the affected key-value?
It's not close on search, it's close on execute (ie: when you open a result in Everything)I am trying to dream up a working scenario where I might want to Tools, Options, Results, "Close Window on Execute". I even checked it ON, reloaded Everything, typed in a search string and tapped <Enter> and nothing closed!
void wrote: Mon Apr 17, 2023 6:32 am Maybe the experimental Tools -> Options -> Advanced page will replace the need to access the Everything.ini
Is it? (can't assess as I'm quirky myself
Tell Me!!!
And now that you have met me ,,, ?I would like to treat the user as smart and give them the options if they know what they are doing.
Agreed and agreed.Although, I would rather give the user options than not. There's tonnes of room for improvement here.
With this I agreeNotNull wrote: Thu Apr 13, 2023 6:50 pm [...]
I 'hate' [1] it when only exceptions are stored in the ini file, leaving no option to find out what all the settings and options of a program are.
[...]