• DOWNLOAD:
— Latest version: Session Manager v7.00 — 2022-09-25 (publishing date)
— Changelog and previous versions: Session Manager Changelog
———————————————————————————
• PURPOSE:
If you frequently open the same folders related to specific tasks, you can regroup them in a session.
⮞ With Session Manager, you can easily switch between work environments, called “sessions”, which remember:
— the content you’re working on, and (optionally)
— the way it’s displayed.
☛ With a single click or keypress ⁽*⁾, or two clicks at most, you could load or switch between e.g.:
— a session "Work": XYplorer as a half-screen window, in Light mode, with folders "My Documents", "This PC", "Downloads"… opened in details view, in dual pane and with tree and catalog visible
— a session "Photos": XYplorer window maximized, in Dark mode, with folder "My Pictures" displaying WallOfPictures thumbails along with a large preview, and opened in single pane with no tree, no tabs, no menu, and the address bar collapsed with the toolbar in a single line
☛ Note that, just as easily, you could switch between :
— these two locations only (the groups of tabs/tabsets), without any layout change
— these two layouts only, without any change of tabs
⮞ In summary: You can save and load (or switch between) any number of any kind of session, with locations and/or layout.
Other examples:
— Dual pane (with or without layout):
Last year photos to sort out (with one folder Incoming and multiple folders SortedOut),
Backup (with folders Sources and Destinations),
Project Alpha (with folders Active, Resources, and Repository/Backup)…
— Single pane:
Last trip photos (very large thumbnails),
Sheet music (list with a huge lateral preview),
My Movies Collection (mid-size thumbnails with mid-size video preview)…
⁽*⁾ Mouse modifiers and keyboard shortcuts are supported.
(e.g. By default, CTRL+Click on Session Manager button switches between the last two sessions used.)
———————————————————————————
• OVERVIEW:
❖ A session remembers the content of each pane and the way it’s displayed.
(The content of a pane —each tab’s location, etc.— is called a tabset in XYplorer. Sessions remember the tabset of both panes, even if one is hidden or not used.)
☛ To save a session: click on Session Manager’s button, then "Save Session as..."
❖ A layout session can also remember the whole layout of XYplorer, i.e. the way you’ve changed the interface (Single or Dual pane, visibility of the tree, catalog, preview... —anything in XY’s "Window" menu! (and more…))
☛ To add a layout to a session: click on "Layout Tools > Save Layout of Current Session"
❖ XYplorer window size and position can be saved and restored with layouts.
☛ To remember window size and position: click on "Options > Layouts: Autosave Window Position and Size with Layouts"
❖ Sessions can also remember some extra features.
Regular sessions can remember the state of visibility of Hidden (or System,...) files and folders
Layout sessions can remember the Dark/Light mode, the state of syncing between panes (Sync Browse, Sync Scroll), and the thumbnails configuration (e.g. regular thumbs with large border for one session, or WallOfPictures enlarged with no padding for another...).
☛ To enable Dark/Light mode and these features: click on "Options > Layouts and Standard: Enable Autosave of Extra Settings"
All the extra features will be saved automatically with their session (each time you save or update a session).
❖ Additionally, sessions can be associated with a script (which will launch each time the session is opened); and sessions can remember the state of XYplorer’s toolbar (so you can have dedicated Custom Toolbar Buttons associated with specific sessions).
☛ To associate a script: click on "Actions > Associate Script with Current Session..."
☛ To associate a toolbar: click on "Layout Tools > Save Toolbar with Session Layout..."
❖ There’s a lot more… which might be described here someday. In the meantime, have a look at the Cheat Sheet in "Options > Help: Cheat Sheet…"
Usual disclaimer: there's no reason this script should cause any trouble. But as they say, it's provided as-is, so backup & be wary, blablabla...
Finally, I'd like to take this opportunity to thank Don for the amazing program that is XYplorer! And big thanks also to the community.
Enjoy!
Flux
———————————————————————————
• INSTALLATION:
Download the script (link above) and copy it into XYplorer scripts folder: <xyscripts> , then either:
1. add load "SessionManager.xys"; to "On left click:" of your custom button, or
2. use the following snippet:
a) Paste ::snippet; into the address bar and press ENTER. A text box will open.
b) Paste the following and press OK. A new button will be created at the right end of your toolbar.
Code: Select all
Snip: CTB 1
XYplorer 19.90.0112, 18.4.2023 12:30:00
Action
NewUserButton
Name
Session Manager [Ctrl: Switch - Alt: Reset - Shift: QuickSave - C+A: LayoutReset - A+S: LoadFavorite - C+A+S: LayoutSwitch]
Icon
text:‹ Tabsets ›
ScriptL
load "SessionManager.xys";
ScriptR
ScriptM
FireClick
1
(Or run it later via "Options > Maintenance Check...")
———————————————————————————
### Extras ###
- The main "starcase" icon used in the screenshot is by kunkel321. You can get it here: Starcase Icon
———————————————————————————
### Old post - Work In Progress ###
Notes:
- Of course you can still use standard tabsets alone, combine them with sessions or use sessions only, and switch methods anytime depending on your needs.
- Each session is composed of two tabsets.
- When you save a new session, its two tabsets are automatically created with the name of the session, preceded by '§1§_' for pane 1 and '§2§_' for pane 2.
(e.g. Session 'Work' uses tabsets '§1§_Work' and '§2§_Work')
- A session is considered (i.e. 'shown as') valid, only when both tabsets are from the same session and in their right pane (e.g. tabset '§1§_Work' in Pane 1 and '§2§_Work' in Pane 2).
- A session is marked by a star icon (marked as active) only if it's a valid session.
- You can disable the confirmation dialog for Reset and Update in Menu "Configuration". Know that, even if disabled:
..."Session - Reset" ALWAYS asks for confirmation if a session isn't valid (but you can still reset your tabsets),
..."Session - Update" NEVER updates a non-valid session, and pops-up a warning instead.
- You can delete multiple sessions at once.
- You can't delete a session that is currently active (i.e. loaded even partially). To do so, just load another session before trying to delete.
Misc:
- 80%+ of the code and work went into imagining the worst mix-ups (i.e. intentional crazy manipulations of tabsets), and implementing safeguards.
- This was executed after I decided to share my original script, which explains why the code's probably not the cleanest one.
—————————
Finally, I'd like to take this opportunity to thank Don for the amazing program that is XYplorer - it's been a while since I had that much fun with a soft !
And thanks also to the community, but especially the "Club of the 4 digits posters". Your contributions were priceless to get up'n running with XY!
—————————
version 1.02: