Session Manager [v7.00]  —  Bookmark your environments: locations and/or display (tabsets and layout)

Discuss and share scripts and script files...
FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Session Manager [v6.20]

Post by FluxTorpedoe »

Thanks for the various feedback/support! :)

& thanks hogaty for the translation, :appl: I updated the post.

astrae_tech
Posts: 3
Joined: 31 May 2018 15:31

Re: Session Manager [v6.20]

Post by astrae_tech »

Fantastic script! Takes complicated workflows to a different level. I don't think there is anything like this in the world.

Running 6.20 here.

I was wondering though if there is an option to save the session on quitting XYplorer? I have about 12+ different XYplorers open with different sessions for different projects opened automatically on startup and at the end I'm fine with updating all of them with their current states but there is no option to do that automatically is there? Sort of autosave for every session where it would be auto saved on close.

Else is there a way to assign a keybord shortcut to the button "Update Session (and layout)"? That way i can quickly update and close every opened XYplorer.

Thank you!

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Session Manager [v6.20]

Post by FluxTorpedoe »

Hi’

Glad you find Session Manager useful ! BTW, I rather agree with your first sentence… :biggrin:
(Well, all thanks to XYplorer in the first place !)

Regarding your request, there’s already something technically feasible, although more of an unsatisfying workaround: using different INI (hence data folders) for each of your XYplorer windows. Unfortunately, that would mean a lot of maintenance to synchronize all data folders…

Now, for a proper solution, what you would need would be:
   1. a way to update sessions outside of Session Manager (via scripting, CKS…)
   2. a way to execute such a command when XYplorer exits

>

   1. I thought this could already be done! Well, I’ll add this command in the next update…
   2. I thought this too could already be done! My memory must be playing tricks on me (all I could find was this thread Feature request: application start/exit-time script). Maybe others will know a way or a workaround…

In any case, you should pretty soon be able to use a keyboard shortcut to update your active session.

And if anyone has another idea/request to add to the update, now is the time to dive in!

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Session Manager [v6.50]

Post by FluxTorpedoe »

 
######################
###  Session Manager v6.50  ###
######################



Hi everyone,

Here’s a new version. Some of its highlights:
 — Editable mouse modifiers (Options > Edit Mouse Modifiers...)
 — Easily Set/Unset the favorite session via menu entry (Options > Set/Unset Current Session As The Favorite)
   Info: Setting a session as the favorite enables you to easily load it externally (via mouse modifiers, CKS, Catalog, scripts...)
 — External access to Update command

See changelog below for more info.

Have a nice day! 8)
   Flux

———————————————————————————

• DOWNLOADS:   Require XYplorer ≥ 19.90.0106 (previous versions available in Changelog)

› Script:
SessionManager.xys
(179.07 KiB) Downloaded 333 times
› Script in UTF-16 LE: (Special version for foreign languages who encounter "invalid character" issues)
SessionManager-UTF16.zip
(43.54 KiB) Downloaded 220 times
› Languages:
Don’t forget to come back here to check when language files are updated…
Note: All the following files work with Session Manager latest version (untranslated strings will just be displayed in English).
 — Čeština by Hogatyv6.50
 — Dansk by Regmosv6.50
 — Italiano by Flora_RMCv6.50
 — Português (Brasil) by SkyFrontier – v5.2
 — Français by pseudoz – v4.b1

———————————————————————————

• REQUIREMENTS:
 — XYplorer >= 19.90.0106

• INSTALLATION » for first-time users:
 — Please refer to first post

• UPDATE » for all users:
 — Overwrite your existing "SessionManager.xys" file with latest version
 — Recommended if updating from < 5.73: Update your layout sessions and default layout (and default toolbar if applicable)
   ☛ Session Manager > "Layout tools" > "Update Default Layout" + "Update Default Toolbar"
   ☛ For each layout session > "Update Session (and Layout)"

• UPDATE » for non-english users:
 — Also download one of the language files and extract it into the same folder as SessionManager.xys (language detection is automatic)

———————————————————————————

• CHANGELOG – v6.50:
+++ Editable mouse modifiers
      Info: Clicking on Session Manager toolbar button while pressing mouse modifiers (Ctrl, Alt, Shift) will run a specific command,
      e.g. Switch between the last two sessions; Reset session; Reset layout to default, etc.
      Access via Session Manager menu: Options > Edit Mouse Modifiers (Used When Clicking On Session Manager Button)...
      Note: The tooltip of Session Manager toolbar button is updated automatically
++ Added menu entry (which opens a dialog with info) to set/unset current session as a the favorite
      Info: Setting a session as the favorite enables you to load it externally (via mouse modifiers, CKS, Catalog, scripts...)
      Note: command was previously only available via mouse modifiers or external access
      Access via Session Manager menu: Options > Set/Unset Current Session As The Favorite
* Favorite session now always unindented in list to help identification
- Removed default mouse modifier for "Set current session as the favorite" (previously Ctrl+Alt+Shift)
+ External access to Update command: load "SessionManager.xys", "_Update";
* Reorganized and updated Cheat sheet with full list of all external commands
      Access via Session Manager menu: Options > Help: Cheat Sheet
* Streamlined menu Layout Tools
      Renamed "Use Layouts" to "Use Session Layouts"
      All generic (non-session) layout options now always available
      Reintroduced menu info when layouts disabled or using non-layout session
* Slightly optimized menu display speed

• CHANGELOG – all versions:
Don’t hesitate to browse the exhaustive changelog (with download links to previous versions) here: • Session Manager Changelog •

———————————————————————————

• TRANSLATORS:
 — New contributions are more than welcome!
 — please head to the dedicated post on the ML forum for the changelog and latest english language file
Last edited by FluxTorpedoe on 06 May 2020 17:50, edited 1 time in total.

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Session Manager [v6.50]

Post by kunkel321 »

Hi Flux, I think the latest XY is not playing nice with SessionManager... Will post in Bugs subforum. just posted here.
Keep having problems with all my screenshots.. Just did screencast instead. Hope that helps.

https://www.youtube.com/watch?v=CZdC4NbuB74
ste(phen|ve) kunkel

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Session Manager [v6.50]

Post by FluxTorpedoe »

What, wait, whaaaat???
Thanks for pointing this out, and for the details in the video!
kunkel321 wrote:I think the latest XY is not playing nice with SessionManager...
Indeed!…
I downloaded the latest XYplorer beta and confirm the bug with XY v20.40.0015, whereas everything’s working perfectly with v20.40.

Same behavior occurs with other scripts:
It seems XYplorer now has a problem finding some (but not all) hidden "_subs".

Investigating, will keep you updated as soon as possible…

Edit:
Bug was introduced with version v20.40.0001, but why??? A buggy :bug: slipped with the namespace change, or some undisclosed trick…

Code: Select all

v20.40.0001 - 2019-09-11 19:45
    + File Namespaces: Support for more odd file namespaces. The following 
      weirdos now work when you paste them into the Address Bar:
        file://\\127.0.0.1\c$\Users
        file://\\[COMPUTERNAME]\c$\Users
        file://\\?\UNC\LOCALHOST\c$\Users
        file://\\?\C:\Users
      For what it's worth...
    ! Configuration | Preview | Mouse Down Blow Up | General | Fit width only: 
      Vertical panning on the Floating Preview was too fast. Fixed.
———————————————————————————

TLDR; To sum up the problem:
Since XYplorer v20.40.0001, numerous scripts stop with a similar error message:

Code: Select all

The list of labels did not match any script in Script file 'D:\Temp\XYbeta\Data\Scripts\PowerFilter.xys'.
sub
_Settings
I’ll let it rest a bit and submit as a bug later if needs be. :maf:

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Session Manager [v6.50]

Post by klownboy »

FluxTorpedoe wrote: 25 Sep 2019 00:18 It seems XYplorer now has a problem finding some (but not all) hidden "_subs".
Hey Don, confirmed. I'm receiving error messages on my Thumbnail Maintenance script as well.

Code: Select all

A user function of the same name already exists!

function Reorder($string, $sub, $sep=<crlf>) { return formatlist(gettoken($string, gettok...
The script is terminated now.
sub
_THUMB_SIZES
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Session Manager [v6.50]

Post by admin »

Please try again with v20.40.0015.

In the meantime I will for now remove that "A user function of the same name already exists!" message and not terminate the script (and not add the function). The error message was probably poorly implemented.

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Session Manager [v6.50]

Post by klownboy »

admin wrote: 25 Sep 2019 08:59 Please try again with v20.40.0015.
I was using the latest beta v20.40.0015.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Session Manager [v6.50]

Post by admin »

You are getting "The list of labels did not match any script" in that version?

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Session Manager [v6.50]

Post by klownboy »

Yes, in the SessionManager script I'm getting,

Code: Select all

The list of labels did not match any script in Script file 'D:\Tools\XYplorer\Scripts\SessionManager.xys'.
sub
_Layout-Save
I'm getting the error I mention above in my post viewtopic.php?f=7&t=8691&start=390#p172874. I'm also getting this one in SammaySarkar's Sticky Tree script

Code: Select all

Resource does not contain any valid scripts.

The script is terminated now.
load
*
_lclick
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Session Manager [v6.50]

Post by admin »

Bad. Going to work... :twisted: :maf: :cup:

UPDATE: Should be fixed in next beta.

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Session Manager [v6.50]

Post by klownboy »

Beta 20.40.0016 fixed the issues in 3 different scripts that I referred to above. :tup:
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Session Manager [v6.50]

Post by kunkel321 »

Yep--All fixed here. :biggrin:
ste(phen|ve) kunkel

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Session Manager [v6.50]

Post by FluxTorpedoe »

A confirmation from me too that, with 20.40.0016, the "labels did not match any script" and "resource does not contain any valid scripts" are both gone (from interrupting inadvertently).

Special thanks Don for the quick fix! :)

———————————————————————————

(Slightly) Off Topic:
[quote=Lusayalumino][quote=klownboy]KenLayCatTools.zip
[/quote]This is tremendous... first time I've downloaded a script from the forum. […]
[/quote]
What??? But how on earth do you manage to work without Session Manager!? :mrgreen:


Edit: Oh dear… I’d seen some orange color and my vision/brain made me think it was the admin’s comment! Hence my bewilderment…
My apologies Don! I should get some rest… :ninja:

Post Reply