Sessions

Discussion related to "Everything" 1.5 Alpha.
void
Developer
Posts: 16733
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.json file to read-only.


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



To restore the previous session from the command line:

Everything.exe -restore-previous-session



To restore a custom session from the command line:

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



To restore the previous windows and tabs when creating a new window:
  • 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:
    restore
  • Select: session_store_restore_on_new_window
  • Set the value to: true
  • Select: closed_window_restore_on_new_window
  • Set the value to: true
  • Click OK.


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:
Restore result list selection/focus.
Restore folder sidebar selection/focus.
meteorquake
Posts: 498
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: 128
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: 16733
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: 79
Joined: Sun Jul 13, 2014 12:20 am

Re: Sessions

Post by Coldblackice »

LOVE THIS!! So stoked this was added!
void
Developer
Posts: 16733
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: 5461
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: 16733
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: 4972
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 22933 times
void
Developer
Posts: 16733
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: 128
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 22828 times
void
Developer
Posts: 16733
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: 128
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 22812 times
therube
Posts: 4972
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 22781 times
.
tiddu
Posts: 17
Joined: Wed May 27, 2020 7:11 am

Re: Sessions

Post by tiddu »

restore-session command is only restoring one window. can it restore all windows from the saved session?
therube
Posts: 4972
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sessions

Post by therube »

It should be restoring any windows that were opened at the time of your Quit (File | Exit).

If you had 3 windows opened, then closed 2 of them, then Quit, only that last Window would be restored.

If you had 3 windows opened, then Quit, 3 windows should be restored.


(At least, that how I think it works.)
tiddu
Posts: 17
Joined: Wed May 27, 2020 7:11 am

Re: Sessions

Post by tiddu »

yes. you are right. i tested again. i don't know why it didn't worked previous time. i guess error from my side. this time it is working great.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Everything 1.5.0.1374a improves sessions.

The following values are now restored from your previous session:
  • Opened file list
  • Column widths
  • Status bar visibility
  • Zoom
  • Invert layout
  • Statusbar thumbnail size


fixed an issue with saving a blank session file on exit.
fixed an issue with restoring more than 32 windows/tabs.

improved handling of busy tabs.



added option to restore previous windows and tabs on startup:
  • 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:
    restore
  • Select: session_store_restore_on_startup
  • Set the value to: true
  • Click OK.


added option to restore previous windows and tabs when creating a new window:
  • 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:
    restore
  • Select: session_store_restore_on_new_window
  • Set the value to: true
  • Click OK.


Hidden windows are now listed under Recently closed windows.



Added a -restore-previous-session command line option.
meteorquake
Posts: 498
Joined: Thu Dec 15, 2016 9:44 pm

Re: Sessions

Post by meteorquake »

This is certainly evolving!

The things most useful personally to be added at the moment, so maybe of reasonable priority for others too, are...

* Save Session... - this then prompts for a location where it stores the current session (incl. all windows, as at the moment of request) as a json file, so that it can be used at any time for launching. It could also create a shortcut with it that runs the launch so you can just move the shortcut anywhere such as the desktop or delete it if wished. This would be like creating a manual restore point on windows System Restore (as contrast to an automatic one). If it had a specific extension name it could be run just by a double-click without a specialised shortcut.

* Remember Session... like the above but just prompts for a name and creates a persistent session def in an internal list.

* Save Window... like save session but just the current window.

* Remember Window... like Remember session but just current window.

* Lists of the Remembered items that you can click to open (in the case of a remembered Window adds the tabs to the current window) or Ctrl-Click to open as new (for a remembered window creates a new window). I would think a remembered Session when opened would always have to open new windows if the session has more than one window, but if it had only one window the logic could be the same as for a Remembered Window.

* Ability to assign shortcut keys to remembered windows/sessions. I think the opening logic would have to ignore any modifiers in doing so as they could well be part of the key stroke itself.

Cheers! David
YorkMorgan
Posts: 15
Joined: Mon Jul 05, 2021 12:23 pm

Re: Sessions

Post by YorkMorgan »

Thank you for adding this long-awaited feature!

I have a couple of questions:

1- How can I save a session from the GUI?
(I read that I can change the .json file to "read only". But is there away t just save multiple sessions from the GUI?

2- is there a way to change the 15 second intervals of saving sessions?

The problem is that when I exit Everything completely (or reboot my pc), then re-open the program, my previous session is gone and is replaced with the new empty instance.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

1- How can I save a session from the GUI?
(I read that I can change the .json file to "read only". But is there away t just save multiple sessions from the GUI?
The GUI only supports one session.
The session is saved when you change your search.

You can load different sessions from the command line with -restore-session <session.json>
Copy your %APPDATA%\Everything\Session<-instance-name>.json to take a session snapshot.


2- is there a way to change the 15 second intervals of saving sessions?
Tools -> Options -> Advanced -> session_store_save_delay

Everything will also save the session to disk when you exit Everything or reboot your PC.

Are you restoring the session after restarting?
History -> Restore Previous Session.
vertigo
Posts: 28
Joined: Sun Oct 08, 2017 8:27 pm

Re: Sessions

Post by vertigo »

Just updated to the latest version to give sessions a go and it doesn't seem to be working. I'd read the notes about it here 2-3 days ago, so I'd forgotten about having to manually restore it and was expecting it to restore automatically, like a browser (and would really prefer if it could do this), but after re-reading the change notes, I went to try the Restore Previous Session option and it's not even available. I've tried multiple times, but it's always grayed out. I've also tried with session_store_restore_on_startup set to true and false (this setting also led me to believe it would be automatic, as that's what it sounds like it's for).
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Thanks for testing 1376a vertigo,

After changing your search, is Everything making a Session-1.5a.json file in %APPDATA%\Everything?
Last edited by void on Sat May 18, 2024 11:44 pm, edited 1 time in total.
Reason: Sessions => Session
_Skywolker_
Posts: 7
Joined: Fri May 17, 2024 6:11 am

Re: Sessions

Post by _Skywolker_ »

void wrote: Fri May 17, 2024 8:22 am Thanks for testing 1376a vertigo,

After changing your search, is Everything making a Sessions-1.5a.json file in %APPDATA%\Everything?
Nope :(
I am using a portable version of the program 1.5.0.1376a.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Sessions

Post by NotNull »

_Skywolker_ wrote: Fri May 17, 2024 2:49 pmportable
Then the sessions file should be in same the folder where your Everything exe file resides.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Please make sure Everything has write permission to the same location as your Everything.exe if you are using the portable version.
_Skywolker_
Posts: 7
Joined: Fri May 17, 2024 6:11 am

Re: Sessions

Post by _Skywolker_ »

void wrote: Sat May 18, 2024 12:00 am Please make sure Everything has write permission to the same location as your Everything.exe if you are using the portable version.
I did some tests and found that the problem only occurs after closing the program via the cross button (top right). :shock:
If you close the program through the file menu, exit, then everything works.
Is it possible to make the program remember the tabs also when closing using the standard Windows button with a cross ?
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Closed windows can be restored under History -> Recently Closed Windows

I am looking into keeping the Recently Closed Windows list between sessions..



I was going to suggest Tools -> Options -> UI -> Run in background
Unfortunately, this closes the window before exiting.. I will have this fixed in the next alpha update.
vertigo
Posts: 28
Joined: Sun Oct 08, 2017 8:27 pm

Re: Sessions

Post by vertigo »

void wrote: Fri May 17, 2024 8:22 am Thanks for testing 1376a vertigo,

After changing your search, is Everything making a Sessions-1.5a.json file in %APPDATA%\Everything?
Got very briefly confused because I used Everything to search for it and it didn't come up, but that was because it's Session-1.5a.json. I assume that's a typo? Or could it be it's creating the file with one spelling and looking for it with another?

I also found out what the session_store_restore_on_startup setting does, which is not what I thought based on the name. As you surely already know, it auto-launches Everything and restores the session when starting the computer. I think this name is confusing and it should probably be changed, but anyways, it's interesting because it worked, despite the fact the session restore wasn't working. Also, session restore does sometimes sort of work, but it's inconsistent. I just closed Everything to test and reopened it, and I think it auto-restored a previous session (not the one I had open right before closing it), though I'm not 100% sure (if it auto-restored, I am sure it was an older session). Anyways, I opened the History menu and the restore previous session option was available. But before I used it, I closed the menu and switched tabs, then reopened the menu and it was grayed out (I'm assuming switching tabs "changed the search" and overwrote the previous session, in which case that's definitely not a good thing). So I closed and relaunched Everything, and this time it opened blank (didn't auto-open a previous session) and the option to restore the previous session is grayed out again. But the last couple sessions are available via the restore previous windows option, so I can only guess that either me or Everything (or both) are mixing up session vs window.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Thank you for testing sessions vertigo,

Sorry, it was a typo.
It should be: Session-1.5a.json

Everything will run in the background.
This is most likely causing the confusion.

When you close your last window, Everything is still running in the background (Tools -> Options -> UI -> Run in background)

Currently, disabling Run in background will not help as the window is still closed and lost for the next session restore.
This will be fixed in the next alpha update.

For now, leave Run in background enabled and use History -> Recently Closed Windows instead.
I am working on saving closed tabs/windows to the session.



Everything starts on system startup.
I will remove the session_store_restore_on_startup as no one will likely want windows to be restored on startup.
You can still use -startup -restore-previous-session if you did want this functionality.
I am considering adding session_store_restore_on_new_window to the UI options page.

In future builds, if you want Everything to behave more like Firefox:
  • Disable Tools -> Options -> General -> start on system startup.
  • Disable Tools -> Options -> UI -> Run in background (currently broken in 1376)
  • Enable Tools -> Options -> Advanced -> session_store_restore_on_new_window
Closing the main window will exit Everything, when you relaunch Everything your previous window will be restored.


I closed the menu and switched tabs, then reopened the menu and it was grayed out
Everything makes a backup of your session when you run Everything.exe (only if it starts a fresh instance)
Everything restores your previous session from this session backup file.
The session can only be restored once.
Changing your search will not clear the session backup.
I'm not 100% sure what happened here, you should be able to restore the previous session if:
  • You haven't restored the previous session yet
  • Sessions are enabled
  • Session-1.5a.backup.json exists (is something deleting this file externally?)
I'm looking into the issue..
vertigo
Posts: 28
Joined: Sun Oct 08, 2017 8:27 pm

Re: Sessions

Post by vertigo »

Regarding the session_store_restore_on_new_window setting, I thought it might be what I need (though apparently only once the run in background issue is fixed), but my concern with that is if I were to open a new window while one is already open, it would open it with the session from the first window, instead of opening a blank window, which I would prefer. And to clarify, I have the "Create a new window when running Everything" setting disabled, as I don't want it to do that if I run Everything from the start menu while it's already running, but rather want it to just switch to the currently open window. I rarely would want more than one window open (love the tabs feature, because before I would have multiple windows open), but if I were to manually open a new one, I wouldn't want it to open with the session from the original duplicated.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Sessions and windows are different.

A session can have multiple windows.

The session lasts until you exit Everything (File -> Exit) or you shutdown Windows.
Closing all your windows does not end the session (unless you disable Tools -> Options -> UI -> Run in background)



Restore previous session can only happen once per session.
Only the first shown window will restore the previous session.
I will rename session_store_restore_on_new_window to session_store_restore_on_first_new_window
Hopefully this will help clarify what the option does.
vertigo
Posts: 28
Joined: Sun Oct 08, 2017 8:27 pm

Re: Sessions

Post by vertigo »

I think the background issue is a big part of the confusion, as closing then reopening it isn't actually exiting and relaunching as expected, so between the renaming of that option and fixing the background issue, it should make things much clearer.

An idea for a possible further improvement on sessions that I think could be handy would be the ability to save a session manually, so it could be given a name and restored at any point in the future, independent of other sessions in between. Basically like bookmarks currently work, except for groups of tabs.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Everything 1.5.0.1377a improves sessions.

Fixed an issue with restored tabs using the wrong sort.

Closed windows and tabs are now saved to your session.
(edit: restored columns are currently broken -I'm working on a fix..)

Disabling Tools -> Options -> Run in background will now correctly save your opened window to the session.

fixed an issue with setting session.json to read-only
The read-only session.json is no longer moved to session.backup.json

Replaced advanced settings:
session_store_restore_on_startup
session_store_restore_on_new_window
with:
session_store_restore_on_first_new_window

added /restore-session <session.json> search command.
added /restore-previous-session search command.
therube
Posts: 4972
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sessions

Post by therube »

Closed windows and tabs are now saved to your session.
Though I take it are not reopened on a 'Restore Previous Session'?

(Though would be available in 'Recently Closed Tabs/Windows'.
OK, it must be like that.)
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Though I take it are not reopened on a 'Restore Previous Session'?
Correct.
(Though would be available in 'Recently Closed Tabs/Windows'.
OK, it must be like that.)
Correct.

You will need to manually reopen closed tabs/windows from a restored session.

Closed tabs/windows are only remembered for one session.
Any previously closed tabs/windows that are not reopened are lost when you end your session.


Fixed an issue with restored tabs using the wrong sort.
This issue was most likely causing the high CPU on session restore for you.
Please let me know if you continue to see high CPU on session restore.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Everything 1.5.0.1378a fixes an issue with missing columns when re-opening closed tabs from a previous session.

Added Reopen all tabs and Reopen all window menu items.
therube
Posts: 4972
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sessions

Post by therube »

1378 - Session Restore
much quicker then earlier

1st blip, was the original opening of Everything itself
2nd blip (longer), was the Session Restore
(which was much quicker, then above, viewtopic.php?p=67005#p67005)
.
Everything - 1378 Session Restore much quicker 30sec.png
Everything - 1378 Session Restore much quicker 30sec.png (21.92 KiB) Viewed 20826 times
_Skywolker_
Posts: 7
Joined: Fri May 17, 2024 6:11 am

Re: Sessions

Post by _Skywolker_ »

void wrote: Fri May 24, 2024 6:36 am Everything 1.5.0.1378a fixes an issue with missing columns when re-opening closed tabs from a previous session.

Added Reopen all tabs and Reopen all window menu items.

I tested Everything 1.5.0.1378 portable, tabs are not automatic restored after restarting the computer. :(
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Did you restore your previous session from History -> Restore previous session?

To automatically restore your previous session:
  • 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_restore_on_first_new_window
  • Set the value to: true
  • Click OK.


Did you restore your closed tabs/windows from History -> Recently closed tabs/windows?
_Skywolker_
Posts: 7
Joined: Fri May 17, 2024 6:11 am

Re: Sessions

Post by _Skywolker_ »

Hello.
Yes, tabs are restored only from the history menu.
1. To restore the tabs, you need to close the program using the hotkey ctrl+shift+w, this only works when the program is restarted.
2. If you close the program using the hotkey ctrl+shift+w and restart the computer, the tabs will not be restored.
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Everything 1.5.0.1379a improves sessions.

The last closed window is now restored when no windows are opened.

To disable this feature:
  • 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_restore_last_closed_window
  • Set the value to: false
  • Click OK.
session_store_restore_last_closed_window
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

Everything 1.5.0.1381a will now use the home settings for missing values in your custom session json files.
mvdeckard
Posts: 29
Joined: Tue Oct 25, 2022 11:46 pm

Re: Sessions

Post by mvdeckard »

_Skywolker_ wrote: Fri May 31, 2024 6:44 pm Hello.
Yes, tabs are restored only from the history menu.
1. To restore the tabs, you need to close the program using the hotkey ctrl+shift+w, this only works when the program is restarted.
2. If you close the program using the hotkey ctrl+shift+w and restart the computer, the tabs will not be restored.
This seems weirdly complicated, but I'm sure there are scenarios I'm not considering that the developer had in mind.

@void Is there a way to restore previous session/tabs regardless of how Everything closed, and if so which setting(s) need to be set?

Currently, pressing CTRL-SHIFT-Q seems to be the only way for Everything to re-open with previously open tabs. But if PC crashes, or reboots for a driver update, or ALT-F4, or clicking X, or right-clicking it on Taskbar to close, or it is otherwise closed for any reason other than I remembered to exit with Ctrl-Shift-Q, it would be nice if tabs restored from previous session no matter what.
Last edited by mvdeckard on Mon Jun 17, 2024 4:33 am, edited 2 times in total.
meteorquake
Posts: 498
Joined: Thu Dec 15, 2016 9:44 pm

Re: Sessions

Post by meteorquake »

An obvious example is also running an update where the session is not restored (at least in my mind that's the case!).
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

closing a window does not mean closing the session.



Everything 1.5.0.1383a improves sessions.



session_store_restore_on_first_shown_window
has been renamed to:
session_store_restore_on_first_new_window



The following advanced settings has been added:
closed_window_restore_on_first_new_window

When enabled, any previously closed window is restored when the first new window is created.


@void Is there a way to restore previous session/tabs regardless of how Everything closed, and if so which setting(s) need to be set?
I recommend enabling both session_store_restore_on_first_new_window and closed_window_restore_on_first_new_window:
  • 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:
    restore
  • Select: session_store_restore_on_first_new_window
  • Set the value to: true
  • Select: closed_window_restore_on_first_new_window
  • Set the value to: true
  • Click OK.
Alternatively, enable only session_store_restore_on_first_new_window and disable run in background:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the UI tab on the left.
  • Uncheck Run in background.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    restore
  • Select: session_store_restore_on_first_new_window
  • Set the value to: true
  • Click OK.
therube
Posts: 4972
Joined: Thu Sep 03, 2009 6:48 pm

Re: Sessions

Post by therube »

Not too much of a big deal, but restoring a session does not guarantee the ordering of the individual windows - along the Windows taskbar.

Might be (nicer) if it did.

(The word, Z-order, popped into my head, but I guess it would be, X-order.
Maybe a synchronous firing of windows, maybe with a slight delay between each, might do it?)


Similar (Mozilla), Bug 1235231 Sessions restore windows in random order.
meteorquake
Posts: 498
Joined: Thu Dec 15, 2016 9:44 pm

Re: Sessions

Post by meteorquake »

I suppose connected with that point, 7+ Taskbar Tweaker allows you to manually drag the individual tasks to your desired order
Unsure if that works with W11 as I think some features only work to W10
d
void
Developer
Posts: 16733
Joined: Fri Oct 16, 2009 11:31 pm

Re: Sessions

Post by void »

The next alpha update will remember the "window creation order" and z-order when restoring the session.

It's tricky to get the window order from the taskbar.
I have put this on my TODO list.

Thank you for the suggestion.
meteorquake
Posts: 498
Joined: Thu Dec 15, 2016 9:44 pm

Re: Sessions

Post by meteorquake »

Although there are many improvements that could be done to sessions, currently I think the biggest shortcoming dwarfing all others is that it doesn't restore the Folder sidebar choice. Anyone navigating there and closing finds such restored tabs are of no value. I can see a large number of multiple Folders selected might be interesting to restore but in practice I think most occasions will have just one folder chosen that needs rechoosing on restoring the tab.
David
Post Reply