Sessions

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

Sessions

Post by void »

Everything 1.5.0.1372a adds sessions.



To restore the previous session:
  • From the History menu, click Restore Previous Session.


Everything will update your session on disk when you change your search.
This can only occur once every 15 seconds.

Everything will also save your session when you exit Everything.



To restore a closed tab:
  • From the History menu, under the Recently Closed Tabs submenu, click your closed tab.
    -or-
  • Press Ctrl + Shift + T to restore the last closed tab.


To restore a closed window:
  • From the History menu, under the Recently Closed Windows submenu, click your closed window.
    -or-
  • Press Ctrl + Shift + N to restore the last closed window.


Your session is stored in %APPDATA%\Everything\Session.json
When you start Everything, your Session.json is renamed to Session.backup.json
The previous session is then restored from Session.backup.json.

The previous session can only be restored once per session.
No session is stored on disk until you change the search.



To disable sessions:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    session
  • Select: session_store
  • Set the value to: false
  • Click OK.


To lock your previous session:
  • Set your Session.backup.json file as read-only.


Internally, Everything converts your Session.json to a bunch of command line options.



To restore a custom session from the command line:

Everything.exe -restore-session "my custom sesssion.json" -no-new-window



Sample session.json:

Code: Select all

[
	{
		"window_x":790,
		"window_y":830,
		"window_wide":1418,
		"window_high":644,
		"maximized":0,
		"ontop":0,
		"filters_visible":1,
		"filters_wide":147,
		"filters_right_align":1,
		"left_sidebar_wide":233,
		"right_sidebar_wide":187,
		"treeview_visible":0,
		"treeview_side":0,
		"treeview_order":0,
		"treeview_high":443,
		"preview_visible":0,
		"preview_side":1,
		"preview_order":2,
		"preview_high":197,
		"filters_sidebar_visible":0,
		"filters_sidebar_side":0,
		"filters_sidebar_order":1,
		"filters_sidebar_high":244,
		"bookmarks_sidebar_visible":0,
		"bookmarks_sidebar_side":0,
		"bookmarks_sidebar_order":1,
		"bookmarks_sidebar_high":264,
		"findbar_highlight_all":1,
		"menu":1,
		"fullscreen_menu":0,
		"theme":2,
		"status_bar_visible":1,
		"zoom":100,
		"invert_layout":0,
		"statusbar_view_thumbnail_size":128,
		"bookmarks_sidebar_expanded":"",
		"tab_cursel":0,
		"tabs":
		[
			{
				"match_case":0,
				"match_path":0,
				"match_whole_word":0,
				"match_diacritics":0,
				"match_prefix":0,
				"match_suffix":0,
				"ignore_punctuation":0,
				"ignore_whitespace":0,
				"match_regex":0,
				"search":"",
				"filter":"EVERYTHING",
				"sort":"Date Modified",
				"sort_ascending":0,
				"view":0,
				"thumbnail_size":32,
				"index":0,
				"index_file_list":"",
				"index_link_type":0,
				"sort_mix":0,
				"omit_results":0,
				"temp_omit_results":1,
				"columns":[{"name":"Name","width":276},{"name":"Path","width":312},{"name":"Size","width":67},{"name":"Date Modified","width":99}]
			}
		]
	}
]


TODO:
Option to restore all recently closed tabs.
Option to restore all recently closed windows.
Restore result list selection/focus.
Restore folder sidebar selection/focus.
Restore column widths.
Restore opened file list / ETP connection.
Restore status_bar_visible
Restore zoom
Restore invert_layout
Restore statusbar_view_thumbnail_size
meteorquake
Posts: 383
Joined: Thu Dec 15, 2016 9:44 pm

Re: Sessions

Post by meteorquake »

Cheers - look forward to this evolving forward!

If I were to suggest the next step in this from my own usage needs, it would be to be able to save as a user name and then reload, and commandline switch to load session. I'm not sure if this should be done as separate files (which are sharable/copyable) or 'internally' as a session namelist in Everything, or both. Probably both. At the moment I launch Everything multiple times with -new-tab to get an effect similar to sessions.

David
eswul62
Posts: 97
Joined: Wed Jul 31, 2013 6:07 am

Re: Sessions

Post by eswul62 »

Will it be possible save a layout (column widths, sorting, no preview, etc.) as a user defined session and have that reload at relaunch (as an option!)?

For example: I may have Everything full screen, with the preview side panel on, column width set and a search strong in the search box.
All this totally different from 'my' default view is, being specific column widths, no preview, empty search box.

Now from the 'example' above, I would like to use a shortcut to reset the view to 'my' default and/or at launch of Everything, it should restore the view from a previously stored session.
void
Developer
Posts: 15384
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

I have on my TODO list to add a command line option to load a custom session.json file.

Thank you for the suggestion.



Currently, Everything converts your session.json into a list of command line options which get passed to a new tab/window.

It should now be possible to setup a session from the command line.
Coldblackice
Posts: 73
Joined: Sun Jul 13, 2014 12:20 am

Re: Sessions

Post by Coldblackice »

LOVE THIS!! So stoked this was added!
void
Developer
Posts: 15384
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Everything 1.5.0.1373a adds a -restore-session and a -theme command line option.



To restore a custom session from the command line:

Everything.exe -restore-session "my custom sesssion.json" -no-new-window
NotNull
Posts: 5270
Joined: Wed May 24, 2017 9:22 pm

Re: Sessions

Post by NotNull »

[Suggestion]
Sessions can be restored manually, but I would love to see active sessions being restored after an update as part of the installer (setup.exe)

Prtable zip is a different story.
void
Developer
Posts: 15384
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Good idea.

I will add a -restore-previous-session command line option and have the installer use this when restarting Everything.

Thank you for the suggestion.
therube
Posts: 4614
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sessions

Post by therube »

(Portable)

Relatively long, ~2.min, high CPU & I/O on updating from 1372 to 1373, restoring session after 1373 opened.

Code: Select all

Everything:	1.5.0.1373a (x86)
OS:	Windows NT 6.1 7601 (x64)
Admin:	0
Service:	1 (connected / installed and running)
Command line:	-instance 15
Binary:	C:\DEV\Locate\15.1373\Everything.exe
Profile:	C:\DEV\Locate\15.1373\Everything-15.ini
Database:	C:\DEV\Locate\15.1373\Everything-15.db
Instance:	15
Config:	match_path=1
Config:	ignore_punctuation=1
Config:	shell_execute_short_parameters=1
Config:	show_mouseover=0
Config:	dupe_group_colors=1
Config:	highlight_max_or_paths=256
Config:	zoom=134
Config:	auto_include_fixed_volumes=0
Config:	auto_remove_offline_ntfs_volumes=0
Config:	find_first_file_path_not_found_retry_timeout=30000
Config:	icon_blend_hidden=1
Config:	thumbnail_medium_text_lines=3
Config:	thumbnail_large_text_lines=2
Config:	filelist_context_menu=0
Config:	open_many_files_warning_threshold=9
Config:	set_foreground_window_attach_thread_input=0
Config:	snap_toggle_on_shift=1
Config:	rename_overwrite=1
Config:	allow_literal_operators=1
Config:	convert_forward_slash_to_backslash=1
Config:	operator_precedence=1
Config:	size_format=1
Config:	size_number_format=4
Config:	ellipsis=0
Config:	jump_to_timeout=99999
Config:	folder_rescan_timeout=60000
Config:	find_and_select_clear_selection=0
Config:	find_and_select_select_folders=0
Config:	find_and_select_select_files=0
Config:	context_menu_parent_folder=1
Config:	custom_open_command01=$exec("C:\WLIB\PLAYERS\mpv.net\mpvnet.exe" %*)
Config:	custom_open_command02=$exec("C:\BIN\XXhash64.BAT" %*)
Config:	custom_open_command03=$exec("C:\BIN\MI_COMPARE.BAT" %*)
Config:	custom_open_command04=$exec("C:\BIN\HEX.exe" %*)
Config:	filter=UNIQ
Config:	preview_icon=1
Config:	treeview_everything_expand_button=1
Config:	findbar_highlight_all=0
Config:	search_for_text_when_you_start_typing=1
Config:	search_history_always_suggest=1
Config:	ntfs_volumes=
didn't think to get this till well after i put 1373 in:

Code: Select all

Database
Location:	C:\DEV\Locate\15.1373\Everything-15.db
Indexed file properties:	Name, Path, Size, Date Modified, Length
Indexed folder properties:	Name, Path, Size, Date Modified
Fast sorts:	Name, Path, Size, Date Modified, Length
Folder count:	307,103
File count:	3,392,044
Total item count:	3,699,147
FAT index count:	0
NTFS index count:	9
ReFS index count:	0
Network drive index count:	0
Folder index count:	0
File list index count:	0
Network index count:	0
Total index count:	9
Folder data size:	14,401,949 bytes
File data size:	158,164,341 bytes
Total data size:	172,566,290 bytes
Average folder data size:	46 bytes
Average file data size:	46 bytes
Folder index size:	4,913,648 bytes
File index size:	67,840,880 bytes
Total index size:	72,754,528 bytes
Total size:	245,320,818 bytes
Folders created:	16,477
Folders modified:	3,993,626
Folders deleted:	22,721
Folders moved:	1,388
Files created:	247,881
Files modified:	2,574,172
Files deleted:	314,371
Files moved:	288,905

Journal
Enabled:	Yes
ID:	01d990470d1b9eb7
Size:	1,013,155 bytes
Max size:	1,048,576 bytes
First item ID:	1414865
Next item ID:	1421144
Item count:	6,279

Update
Count:	1,058,208
Total duration:	15:28:16
Minimum duration:	0.000000 seconds
Maximum duration:	34,680.294210 seconds
Average duration:	0.052633 seconds
Last duration:	0.000173 seconds
Last update date:	04/25/2024 10:33 PM

Load
Count:	43
Total duration:	02:06
Minimum duration:	2.720588 seconds
Maximum duration:	4.448565 seconds
Average duration:	2.945041 seconds
Last duration:	3.097331 seconds
Last load date:	04/25/2024 06:39 PM

Save
Count:	392
Total duration:	21:48
Minimum duration:	1.416556 seconds
Maximum duration:	97.814859 seconds
Average duration:	3.337115 seconds
Last duration:	1.603728 seconds
Last save date:	04/25/2024 06:38 PM
Next scheduled save date:	04/26/2024 04:00 AM
Total bytes written:	53,055,522,336

Query
Count:	40,462
Total duration:	51:17
Minimum duration:	0.000005 seconds
Maximum duration:	38.988007 seconds
Average duration:	0.076047 seconds
Last duration:	0.083631 seconds
Last query date:	04/25/2024 10:29 PM
Total result count:	1,583,526,080
Maximum result count:	3,762,494
Average result count:	39,136
Last result count:	424

Sort
Count:	77
Total duration:	00:16
Minimum duration:	0.000112 seconds
Maximum duration:	1.232257 seconds
Average duration:	0.214951 seconds
Last duration:	0.020332 seconds
Last sort date:	04/25/2024 07:19 PM
(oh, & my disappearing H: drive, which just so happened to disappear on awakening from sleep - tonight:)

Code: Select all

NTFS Index
Volume name:	\\?\Volume...
Path:	H:
Root:	
Include only:	
Drive type:	Fixed
Label:	HIT2G
Index number:	2
Date indexed:	05/26/2023 10:58 PM
Out of date:	No
Online:	No
Disk device index:	
Multithreaded:	Separate device thread
Folder count:	22,394
File count:	319,375
USN Journal ID:	01d0df94dd4a96e1
Next USN:	000000000b9afbe8
.
Everything - 1373 Session Restore 2min18sec.png
Everything - 1373 Session Restore 2min18sec.png (12.08 KiB) Viewed 197 times
void
Developer
Posts: 15384
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Could you please send your Session-15.backup.json to support@voidtools.com

Maybe there was an expensive search in one of your tabs.



Does Windows Explorer see your H: drive?
It should take Everything about 30 seconds to pickup your H: drive when it comes online.
eswul62
Posts: 97
Joined: Wed Jul 31, 2013 6:07 am

Re: Sessions

Post by eswul62 »

Ehm ... dumb question, but, with me, there is no session .json in Everything (install version).
Portable does have a session and backup, the install only a backup.
I launched and exited the installed version a few times, but a session is not created.
(Session store = True)
SnagIt-29042024 064623.png
SnagIt-29042024 064623.png (12.23 KiB) Viewed 92 times
void
Developer
Posts: 15384
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Your Session.json is renamed to Session.backup.json when you start Everything.

The Session.json is only created when your current session is dirty (when you manually change the search)

To create a session.json:
Launch Everything.
Change the search.
Exit Everything.
eswul62
Posts: 97
Joined: Wed Jul 31, 2013 6:07 am

Re: Sessions

Post by eswul62 »

Thanks. the file is created.
launch Everything
Enter something to search for, no matter what.
then Clear the search box
Resize columns, if necessary
Resize window, if necessary
file exit

make the .json file read only
launch everything
(it starts with the last window size, that's fine)
restore session
window size is quite different, column widths are the same

INI and Json window size are the same.

Probably because I have stored a different size in Everything .ini (Auto_Size_3 = ALT 3)
SnagIt-29042024 100849.png
SnagIt-29042024 100849.png (40.36 KiB) Viewed 76 times
therube
Posts: 4614
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sessions

Post by therube »

4 windows, 11 tabs
(purposely restarted, to see what would happen)

so this time, it took only 1.min
& far less activity going on

should have noted that on the restore I (above)
that i was copying some files during the time
of the restore, & while the actual file count
wasn't too high (91 if i remember) file sizes
were large, so maybe it could have been around
30 GB, so while i didn't think much of it at
the time, that i/o might have contributed to
the greater time & more "noise" that i noticed
during restore I
.
Everything - 1373 Session Restore 1min.png
Everything - 1373 Session Restore 1min.png (26.9 KiB) Viewed 45 times
.
Post Reply