Everything_user.ini

Have a suggestion for "Everything"? Please post it here.
therube
Posts: 5727
Joined: Thu Sep 03, 2009 6:48 pm

Everything_user.ini

Post by therube »

Everything_user.ini

Oh, I don't know, something like a "Everything_user.ini" or an export to a "clean" .ini such that it would be subset of current settings, something that a set of settings can be transported, moved, used with differing profiles, users, machines - without machine specific specific settings?

Like what a User.js file does in Mozilla browsers.


IOW, I have a set of preferences that I like to make, & I'd like to easily be able to apply those particular preferences to other Everything instances that I open - be they instances on the same machine or on different machines...


I'm thinking that ntfs_volume_*.* & rtfs_volume_*.* are going to be machine dependent, so would want to be left out...


Having just done this "manually", I copied everything.ini from one machine to another (with Everything closed), I deleted above, figuring that on opening Everything would automatically pick up, set up, the ntfs_volume_*.* for the new machine...
void
Developer
Posts: 19899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything_user.ini

Post by void »

without machine specific specific settings?
The plan is to redo the setting system in Everything to make it more enterprise friendly.
So this would take Computer/User settings into account.
This would allow GPOs to lock and specify settings.

I'll consider a Everything-user.ini.

There's not too many Computer/Machine settings in Everything. NTFS options are tied to a GUID and Path. The GUID is unique to that volume.
It won't hurt to save these in the user settings since when you move this profile to another computer, Everything will just see the NTFS GUID is missing.
Having just done this "manually", I copied everything.ini from one machine to another (with Everything closed), I deleted above, figuring that on opening Everything would automatically pick up, set up, the ntfs_volume_*.* for the new machine...
Everything should see the NTFS volumes are from a another computer and remove them automatically, it should also add any new NTFS volumes for the new computer, it all depends on your Automatically included new fixed/removable volumes / Automatically remove offline volumes settings.
Sounds like you have both of these disabled? -If so you would end up with an empty index.

Would you prefer Everything follow only the drive letter? eg: on computer1 you setup Everything to index only C:, copy your Everything.ini to computer2, where Everything on computer2 will index only c: (even though it may have a D: and E: drive)

I could make Everything a bit "smarter" here and detect that the c: drive has been "replaced". This should be fine for the C: drive, but could be troublesome for other removable drives.
therube
Posts: 5727
Joined: Thu Sep 03, 2009 6:48 pm

Re: Everything_user.ini

Post by therube »

Options | Advanced -> Import ---> USER.JS.

USER.JS contains user specific settings that one may typically want to make to all Instances.

You import a single USER.JS (or multiple user files, each configured with associated settings), & all those changes are effected, at once, rather then making individual changes, multiple times, time & time again.

Prefixes perhaps, or not: +, -, ; (REM), <nul>
+ would change a setting
- would... ? toggle a setting, but then a + with an appropriate value would do the same
; is a REMark
maybe anything other then + is also a ; REM
or maybe just keep it simple & anything not ; is a setting.

USER.JS:

Code: Select all

show_mouseover=0
+ dupe_group_colors=1 ;   colors surely helps - ME
+ open_many_files_warning_threshold=9 ;   less then default, "better", IMO
- allow_literal_operators=1 ;   (i set this LONG ago, for whatever reason & [most likely] do NOT want it set!)
+ convert_forward_slash_to_backslash=1
+ operator_precedence=1 ;   AND OR  vs.  OR END, "my" way seems more logical (to me ;-))
+ size_format=1;   oh, absolutely - BYTES
size_number_format=4 --- OK, so i'm GUESSING format is "bytes", then what is NUMBER_FORMAT ???
ellipsis=0 --- not sure why i had it at 0 ?   not sure what things would look like otherwise ? (offhand)
jump_to_timeout=99999 ;   i'm too slow for the (FAST) default of 1000... (leave default, for now)
+ dupe_line_color=#000000 ;   BLACK (is needed to help make dup groups stand out)
custom_colors=#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff,#ffffff
^--- unsure what that does, offhand, so not setting them, for now
folder_rescan_timeout=60000 --- guessing that value changed over time, can't imagine i (specifically) set it (at any point in time)
- file_list_history= ;   for purposes of a "CLEAN" .ini, guessing would NOT want this? (in particular if .ini was to be posted, elsewhere)
rename_x _y, etal ;   might want to carry over dialog size..., eh ?
rename_SETTINGS ; case/regex...; ditto..., eh ?
^--- ditto with various other dialog boxes (& their sizings...)
context_menu_parent_folder=1 ;   unsure what this is, offhand
+ custom_open_command01=$exec("C:\WLIB\PLAYERS\mpv.net\mpvnet.exe" %*)
+ custom_open_command02=$exec("C:\BIN\chk.4.EVERYTHING.exe" %*)
+ custom_open_command03=$exec("C:\BIN\MI_COMPARE.BAT" %*)
+ custom_open_command04=$exec("C:\BIN\HEX.exe" %*)
custom_open_command05=$exec(C:\BIN\win32pad.exe K:\xfeRRRRRRR\DONE\DONEX\delme.from.K\new.txt")
+ set_file_time_date_modified=#get-date-modified:<#clipboard:> ;   my SETTIME command
preview_icon=1 --- unsure what it is, offhand, but maybe ? that disables ?something? that is of no consequence (to me) ?
+ search_for_text_when_you_start_typing=1 ;   FAYT, absolutely necessary
search_history_always_suggest=1 --- unsure what it is, offhand

ntfs_volume_ hmmm... ?
NOTE: that O: drive is threated as a FIXED HDD, a '3', even though it is a "USB flash drive [SSD][in an adapter]"
can ALL of this be excluded, & it will be picked up, automatically, based on "auto include NTFS..."

text_plain_extensions= ; changes over time, any of these types of settings, apt to change over time
^--- users often add THEIR OWN wanted "extensions", so being able to "import" your particular
     "wants", maybe a + - system, +OEK adds ;OEK to "text", & -txt removes ;txt from "text" ...

; HOTKEYS, definitely want them to carry over, for ALL Profiles
+ file_copy_full_path_keys=9539,8309 ;   F6
+ file_copy_path_keys=8308 ;   F5
+ file_copy_name_keys=8315 ;   F12

+ file_custom_open_1_keys=8781
+ file_custom_open_2_keys=8792
+ file_custom_open_3_keys=8777
+ file_custom_open_4_keys=8776
+ file_custom_open_5_keys=8773
^--- hotkeys for various custom_open_command's

edit_find_and_select_keys=1345 --- unsure what this is, offhand ?
edit_advanced_advanced_move_to_folder_keys=8821 --- ditto ?

+ view_refresh_keys=1140 ;   since i use F5, elsewhere, remapped to SHIFT+F5

search_advanced_search_keys=1350 --- unsure what this is, offhand ?
history_restore_recently_closed_window_keys= --- must now default (to some key), where before there was not - thinking i would not (necessarily) want this ?
search_edit_auto_complete_search_keys=4384 --- unsure what this is/does, offhand, or why i have it set (where now it defaults to not set) ?
search_edit_complete_word_keys= --- ditto, in opposite ?

result_list_focus_previous_selected_keys=9331
result_list_focus_next_selected_keys=8307
^--- wonder what these are, & why they're different (by default) ?

+ tabs_selected_background_color=#80ff00 ;   oh yes, make the "current" tab stand out, definitely!



other .ini of interest... ???

PROPERTIES

if existing HAS Properties
if you keep existing .db too, then Properties are "just there" & should "just work" ?

if existing HAS Properties
& no existing .db... then Properties would be gathered on RUN ?
- prob not something one might want, at least automatically

what else... ???

Similar:
2 ini files
Global and Per-Instance Configs
void
Developer
Posts: 19899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything_user.ini

Post by void »

The issue I have with user.js is any change to a user.js setting you make in Everything is lost.
This might not be clear to the user.



You can get your current changes from Help -> Troubleshooting Information -> Config.

Copy and paste this to the end of your other Everything.ini
-or-
Copy and paste this to a newly created Everything.ini with an [Everything] section.

This is what I do when I need to test user settings.



Everything already has a policy.ini
The policy.ini has the advantage of locking the setting.

Example policy.ini:

Code: Select all

[Everything]
show_mouseover=0
dupe_group_colors=1
open_many_files_warning_threshold=9
allow_literal_operators=1
convert_forward_slash_to_backslash=1
operator_precedence=1
size_format=1
size_number_format=4
ellipsis=0
jump_to_timeout=99999
dupe_line_color=#000000
folder_rescan_timeout=60000
file_list_history=
context_menu_parent_folder=1
custom_open_command01=$exec("C:\WLIB\PLAYERS\mpv.net\mpvnet.exe" %*)
custom_open_command02=$exec("C:\BIN\chk.4.EVERYTHING.exe" %*)
custom_open_command03=$exec("C:\BIN\MI_COMPARE.BAT" %*)
custom_open_command04=$exec("C:\BIN\HEX.exe" %*)
custom_open_command05=$exec(C:\BIN\win32pad.exe K:\xfeRRRRRRR\DONE\DONEX\delme.from.K\new.txt")
set_file_time_date_modified=#get-date-modified:<#clipboard:>
preview_icon=1
search_for_text_when_you_start_typing=1
search_history_always_suggest=1
file_copy_full_path_keys=9539,8309
file_copy_path_keys=8308
file_copy_name_keys=8315
file_custom_open_1_keys=8781
file_custom_open_2_keys=8792
file_custom_open_3_keys=8777
file_custom_open_4_keys=8776
file_custom_open_5_keys=8773
edit_find_and_select_keys=1345
edit_advanced_advanced_move_to_folder_keys=8821
view_refresh_keys=1140
search_advanced_search_keys=1350
history_restore_recently_closed_window_keys=
search_edit_auto_complete_search_keys=4384
search_edit_complete_word_keys=
result_list_focus_previous_selected_keys=9331
result_list_focus_next_selected_keys=8307
tabs_selected_background_color=#80ff00
Place the policy.ini in the same location as your Everything.exe

Policy.ini



I don't have a good way to add an extension to the
text_plain_extensions
setting.
You will need to define the entire list.

I have put on my TODO list to add a
add_text_plain_extensions
setting which adds to the
text_plain_extensions
list.



There is also already a -add-config command line option.
Everything.exe -add-config user.ini



Changed advanced settings are also listed under Tools -> Options -> Advanced -> Show only modified settings.

You can also hit F1 to get help on the selected setting in Tools -> Options -> Advanced.

New Everything 1.5 settings
Other settings



Some default setting values have changed during the course of development so Everything may flag the values as changed where you didn't change them yourself.


+ operator_precedence=1 ; AND OR vs. OR END, "my" way seems more logical (to me ;-))
As a programmer I am used to AND > OR too.
For searches I find OR > AND more useful.
eg:
c:|d: foo bar
foo bar *.jpg|*.mp3

The amount of requests I got to change from AND > OR in Everything 1.3 to OR > AND was rather large.


size_number_format=4 --- OK, so i'm GUESSING format is "bytes", then what is NUMBER_FORMAT ???
size_number_format is ignored when formatting as bytes.
For other size formats (eg: KB or MB), this settings controls how the number is formatted.
4 is format the number to 3 digits using a decimal point if necessary.

size_number_format


ellipsis=0 --- not sure why i had it at 0 ? not sure what things would look like otherwise ? (offhand)
Hides the ... when text is clipped.

ellipsis


rename_x _y, etal ; might want to carry over dialog size..., eh ?
rename_SETTINGS ; case/regex...; ditto..., eh ?
You might want to set the default settings.
This would be a good use of a user.ini


preview_icon=1 --- unsure what it is, offhand, but maybe ? that disables ?something? that is of no consequence (to me) ?
When this setting was first added it was set to true.
It now defaults to false.
I don't want file lists to access your disk by default.


search_history_always_suggest=1 --- unsure what it is, offhand
Always shows search suggestions as your type in the search box.
Search history has to be enabled.
Suggestions can get in the way so its off by default.


ntfs_volume_ hmmm... ?
NOTE: that O: drive is threated as a FIXED HDD, a '3', even though it is a "USB flash drive [SSD][in an adapter]"
can ALL of this be excluded, & it will be picked up, automatically, based on "auto include NTFS..."
Use the auto include settings or use the virtual volumes setting.


edit_find_and_select_keys=1345 --- unsure what this is, offhand ?
Edit menu -> Find and select


edit_advanced_advanced_move_to_folder_keys=8821 --- ditto ?
Edit menu -> Advanced -> Advanced Move to Folder.


search_advanced_search_keys=1350 --- unsure what this is, offhand ?
Search menu -> Advanced Search


search_edit_auto_complete_search_keys=4384 --- unsure what this is/does, offhand, or why i have it set (where now it defaults to not set) ?
Shows search suggestions from the search edit.


search_edit_complete_word_keys= --- ditto, in opposite ?
Shows the complete word suggestion box from the search edit.
(auto completes macros, modifiers, functions and paths)


result_list_focus_previous_selected_keys=9331
result_list_focus_next_selected_keys=8307
^--- wonder what these are, & why they're different (by default) ?
These changed at some stage.
If you are not using them they can be ignored.
They move the focus between multiple selected items.


PROPERTIES

if existing HAS Properties
if you keep existing .db too, then Properties are "just there" & should "just work" ?

if existing HAS Properties
& no existing .db... then Properties would be gathered on RUN ?
- prob not something one might want, at least automatically


I will consider loading a user.ini by default.
therube
Posts: 5727
Joined: Thu Sep 03, 2009 6:48 pm

Re: Everything_user.ini

Post by therube »

(thinking out loud...)

So a color changes, tabs_selected_background_color, is not reflected in Options | Advanced, nor Help | Troubleshooting,
but rather in General | Fonts and Colors. (Happened to be the first thing I threw into profiles.ini.)

(Ah, so "color", while it can be in Policy.ini, does effect change & all that, does not show up in
Help | Troubleshooting -> Policy:)


Policy.ini, does what...
Is read before Everything.ini, reflects said changes - in memory, until you Quit (or some other action that writes out Everything.ini), & on Quit writes those changes into Everything.ini.

On next restart, the same happens, so Policy.ini policies are (again) in place regardless of whether you had interactively changed a setting during the prior session.

Simply rename Policy.ini to Policy.ini.X makes it ineffectual, but the policies implemented prior are still left in effect (but now, won't be reset if you interactively change particular settings).

So in that respect, a (one time) Policy.ini may very well work, if you didn't necessarily want settings set in stone.

(Being able to interactively load a "user.ini" & have the settings merged in, seem to me... perhaps cleaner?
And possibly not requiring a restart.)
therube
Posts: 5727
Joined: Thu Sep 03, 2009 6:48 pm

Re: Everything_user.ini

Post by therube »

There is also already a -add-config command line option.
Everything.exe -add-config user.ini
OK.
That will do it.
C:\DEV\LOCATE\MULE - ini - TEST>everything.exe -instance mule -add-config policy.ini.X


But make it interactive, with a GUI (in addition to command-line).

So we're back to,
Options | Advanced -> Import
---> USER.JS
which simply, interactively runs Everything.exe <current Instance> -add-config user.js.


So then you simply have set of settings, laying around, & you can interactively load them, at will.
"Monday - green tabs.ini"
"Tuesday - always gloomy, so darkmode.ini"
"Wednesday - too difficult to spell, so autocomplete.ini"

Options | Advanced -> Import --> "Monday - green tabs.ini"
void
Developer
Posts: 19899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything_user.ini

Post by void »

I should have mentioned, Help -> Troubleshooting information only shows important changes.

Enable -> Tools -> Debug -> Verbose to list all changes.


Policy.ini, does what...
Is read before Everything.ini, reflects said changes - in memory, until you Quit (or some other action that writes out Everything.ini), & on Quit writes those changes into Everything.ini.
Policy.ini is read before the Everything.ini
Policy.ini will lock settings so they cannot be changed.
Locked settings cannot be changed from your Everything.ini
On exit, the policy.ini settings will get saved to your Everything.ini


On next restart, the same happens, so Policy.ini policies are (again) in place regardless of whether you had interactively changed a setting during the prior session.
You will be unable to change locked settings from a policy.ini.
The policy.ini is applied each time your start Everything.


Simply rename Policy.ini to Policy.ini.X makes it ineffectual, but the policies implemented prior are still left in effect (but now, won't be reset if you interactively change particular settings).

So in that respect, a (one time) Policy.ini may very well work, if you didn't necessarily want settings set in stone.
That's one way of doing this.

Everything.exe -add-config user.ini
was designed to do this.


(Being able to interactively load a "user.ini" & have the settings merged in, seem to me... perhaps cleaner?
And possibly not requiring a restart.)
Everything.exe -add-config user.ini
would be cleaner.

I will trial a user.ini in the next alpha update.
The user.ini will have the same behavior as Firefox.


But make it interactive, with a GUI (in addition to command-line).
Tools -> Import/Export Settings...
check Import settings
Select your policy.ini.X and click Import.
Optionally accept the prompt to restart.
void
Developer
Posts: 19899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything_user.ini

Post by void »

Everything 1.5.0.1397a adds User.ini support.

I also added a few add-virtual-ini settings:
add_volumes
add_text_plain_extensions
and more...