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

Discuss and share scripts and script files...
elbitjusticiero
Posts: 35
Joined: 11 Mar 2018 20:57

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

Post by elbitjusticiero »

I think this bug has something to do with the status of the XYplorer window (maximized or not), because after maximizing or restoring the window, the error ceased to appear.

autocart
Posts: 1354
Joined: 26 Sep 2013 15:22

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

Post by autocart »

Hi Flux,
Just a tiny observation:

The installation snippet in the first post seems to be outdated.
Instead of

Code: Select all

Snip: CTB 1
  XYplorer 11.60.0207, 05.10.2012 17:30:00
Action
  NewUserButton
Name
  Session Manager
Icon
  :tabsets
ScriptL
  load "SessionManager.xys";
ScriptR
  
FireClick
  1
I assume it should be

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
I noticed it especially because of the icon template. The old snippet initially loads with the briefcase icon. But the icon all of a sudden changes to the text version, once I start using the tool. This can be quite confusing for a beginner.

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

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

Post by FluxTorpedoe »

Hi everyone! ☼

@WirlyWirly & @elbitjusticiero
I couldn’t check (wasn’t online), but glad the problems were only temporary!

@WirlyWirly
Thanks to your incentive, I narrowed down the speed issue to the way “subs” are processed by XYplorer.
I had already noticed it when making optimizations for v7.00, but I didn’t realize how much impact they had on the session loading itself.
I made a Feature Request, waiting for Don’s feedback on this.
Fingers crossed… 8)

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

@cwq23us
cwq23us wrote: 08 Jan 2023 20:52 I'd like the Info pane to focus on the Properties tab when I reset the session. Can I do that?
Previously it used to focus on the "Preview" tab all the time. Now it just stays focused on whatever tab is focused when I reset.[…]
Or can I make it an official feature request?
Well, I’m always open to suggestions, and I understand the need… But “correctly” adding more options for the info panel would mean taking into account its 8 tabs—which seems a little overkill right now… ;)
So, in the meantime, klownboy’s answer is the way to go indeed.

BTW for whoever might be interested, the info panel opening on Preview (or other if #1023 is replaced) needs this option checked:
   Options > Layouts: Activate Preview When Loading Layout Session with Info Panel Visible

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

@autocart
Indeed, the button change is confusing, thanks for the feedback.
I updated the first post with your code (even saw you wrote XYplorer minimum session requirement—great attention to detail! :appl: )

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

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

Post by FluxTorpedoe »

 
#####################
###  Session Manager v7.50  ###
#####################



Hi everyone,

Better late than never, here’s a notable SPEED BOOST version.
Special thanks to Don for the changes he made to XYplorer for this!
(It was about a year ago… Unfortunately I haven’t had time to post this update since.)

Most notable (full list and more details available below in changelog):
+++ MAJOR speed boost for all versions of SessionManager with XYplorer >= v24.30.0121 (Thanks Don!)
++ Notable extra speed boost for quick access (external (UDC, Catalog...) or via mouse modifiers on button)
      eg especially notable when switching between the last two sessions via Ctrl+Click on toolbar button
+ General speed boost and smoother transitions

Have a nice day! 8)
   Flux

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

• DOWNLOADS: (Previous versions available in Changelog)

› Script:
SessionManager.xys
(226.13 KiB) Downloaded 286 times
 
› Script in UTF-16 LE: (Special version for foreign languages who encounter "invalid character" issues)
SessionManager-UTF16.zip
(56.06 KiB) Downloaded 231 times
 
› Languages:
   Don’t forget to come back here to check when language files are updated.
   Installation: Just copy the (extracted) language file (eg. SessionManager.it) in the same folder as the script itself (SessionManager.xys).
   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.90+
 — Deutsche by Dean36v6.60+
 — Português (Brasil) by SkyFrontierv5.2+
 — Français by pseudozv4.b1+
 — 中文 by Haodeav6.80+

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

• REQUIREMENTS:
 — XYplorer >= 19.90.0112 — Highly Recommended: XYplorer version >= 24.30.0121

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

• UPDATE » for all users:
 — Overwrite your existing "SessionManager.xys" file with latest version
 — Note: On first run, an XYplorer and Session Manager maintenance check might be done and display a confirmation message, you can safely press OK. (Or run it later via "Options > Maintenance Check...")

• 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 – v7.00:
+++ MAJOR speed boost for all versions of SessionManager with XYplorer >= v24.30.0121 (Thanks Don!)
++ Notable extra speed boost for quick access (external (UDC, Catalog...) or via mouse modifiers on button)
      eg especially notable when switching between the last two sessions via Ctrl+Click on toolbar button
+ Slight extra speed boost in general
+ Smoother transition when loading session with button icon and/or name in titlebar
* Menu Actions: Inverted the first two entries Switch Between the Last Two Sessions / Save New Auto-Named Quick Session
* Added missing space in append tab explanation


• 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
      Note: There has been no language changes between v7.00 and 7.50
Last edited by FluxTorpedoe on 12 May 2024 23:56, edited 1 time in total.

GUIguy
Posts: 121
Joined: 03 Jan 2016 02:11
Location: Oregon, USA Win 10-64
Contact:

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

Post by GUIguy »

I dutifully copied the script to the scripts folder (with XY closed) and when I reopened XY, I still have v. 7.0

What am I doing wrong? :veryconfused:
GUIguy
I measure a good day by how little I fell behind

Quick, hire a teenager while they still know everything!

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

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

Post by FluxTorpedoe »

GUIguy wrote: 12 May 2024 20:31 I dutifully copied the script to the scripts folder (with XY closed) and when I reopened XY, I still have v. 7.0

What am I doing wrong? :veryconfused:
🙈
My bad… I was so eager to post it after so long that I forgot to change the version number inside the script.
I reuploaded the files with the correct identification.

klownboy
Posts: 4397
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

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

Post by klownboy »

Hey Flux, thanks again for the update. The Session Manager Change Log states, v7.50 — 2023-04-24. ;)

GUIguy
Posts: 121
Joined: 03 Jan 2016 02:11
Location: Oregon, USA Win 10-64
Contact:

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

Post by GUIguy »

Thanks! At least I've found one thing where I'm not completely nuts! Now to find some others...but it's doubtful... :veryconfused:
GUIguy
I measure a good day by how little I fell behind

Quick, hire a teenager while they still know everything!

oblivion
Posts: 155
Joined: 13 Apr 2011 11:35

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

Post by oblivion »

And SessionManager is STILL the most important tool in my workflow management arsenal :)

One thing though -- and there may or may not be cause and effect here -- I had a play with the new Rapid Access folders functionality. I don't usually have the tree switched on, so I remedied that and added a couple of RA folders from opened tabsets...

...and my sessions broke. Not all, but most. Sessions with more than a couple of tabs disappeared down to 1, from a different session. No obvious cause and effect and fortunately I have a recent backup of sessionmanager.ini so I've recovered -- but now I'm a bit scared in case it happens again.

This was prior to me updating to SM 7.50, though.

I'll try and do some careful experimenting in case it's just a glitch in the matrix... :)
-- bests, Tim

...This space unintentionally left blank.

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

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

Post by FluxTorpedoe »

@Ken
Yes, the changelog date of 2023-04-24 is correct! It took me a while to post it… 🙈
That’s why on the first page I mentionned "2024-05-12 (publishing date)".

———————————————————————————
oblivion wrote: 28 May 2024 17:08 ...and my sessions broke. Not all, but most. Sessions with more than a couple of tabs disappeared down to 1, from a different session. No obvious cause and effect and fortunately I have a recent backup of sessionmanager.ini so I've recovered -- but now I'm a bit scared in case it happens again.
Hi and thanks for the feedback.
Regarding the issue, ouch, that’s brutal!
I can’t figure out a reason why that would have happened — be it with v7.00 or 7.50… Except a crash, but I guess you’d remember.
I tried to replicate with standard sessions, and also a session specifically with RAF folders and subfolders opened and active in both panes, and switching between sessions via clicking in the menu, via Ctrl+Click on the toolbar button, via Quick launch CKS, etc. I just couldn’t find anything unusual (except that it’s fast, I’m still not used to it!)
Note: I tried with v7.50 on XYplorer v26.00.0200. But as I said, even with previous versions, I don’t see what change in XYplorer (presumably?) could have caused this.
If you have any other information, please do share.
Or let’s hope it was just a glitch indeed… 😉

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

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

Post by FluxTorpedoe »

oblivion wrote: 28 May 2024 17:08 One thing though -- and there may or may not be cause and effect here -- I had a play with the new Rapid Access folders functionality. I don't usually have the tree switched on, so I remedied that and added a couple of RA folders from opened tabsets...
...and my sessions broke. Not all, but most. Sessions with more than a couple of tabs disappeared down to 1, from a different session. No obvious cause and effect and fortunately I have a recent backup of sessionmanager.ini so I've recovered -- but now I'm a bit scared in case it happens again.
Hi,
Looks like your issue might have been related to the newly introduced RAF, if you had a folder (or item?) in RAF with the same name as a tabset.
Check this post: Problem: tabsets stopped working
So it should be fixed now.

Code: Select all

v26.00.0302 - 2024-06-01 13:46
    […]
    ! Tabsets: You could no longer switch to a tabset if the name of the tabset was 
      identical to the name of a special folder (including RAF). Fixed.

Malarki
Posts: 208
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

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

Post by Malarki »

Hi Flux -

Session Manager is great and I use it often - thanks very much for it.

As usual, I just copy the new SessionManager.xys over the existing file in my XY Scripts folder. I don't touch the existing .INI.

BUT this new v7.50 doesn't display / list any of my existing sessions. I've tried creating a new session under this version, which clearly does get created but still there is no list. The Maintenance Check test (in SM) passes OK.

This is with XY v26.10 but I've also tried reverting my entire XY installation to some from months back, with the same problem.

The good news is that this new SM works in a ::fresh instance of XY.

--> So some setting or issue with my normal working XY, that has never before been an issue for SessionManager, is preventing this new SM version from showing the list of sessions.

Any ideas?

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

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

Post by FluxTorpedoe »

Hi,

I can’t replicate.
I’m on XY v26.0 but made a quick test as if I’d updated to the latest betat XY v26.10.0.206, and I see no difference, SM is still listing all sessions.

Could you try renaming your SessionManager.ini to SessionManager.bkp (or whatever) ? SM should rebuild all sessions from scratch and display them.
I don’t have high hopes since the Maintenance Check also double check this, but that’s worth a try.

Blind shot: What is the name of your first and last session?
Or if it’s not too indiscreet, could you paste (as text) the content of your XY\Data\Panes folder?
I wonder if the issue might come from a name problem…

Malarki
Posts: 208
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

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

Post by Malarki »

I did try just deleting the .INI file, leaving only the .xys. That didn't change anything - SM still can't show the list of sessions.

I've narrowed down the problem. I run the SM script via XY's "User | Load Script File" feature. I have about a half-dozen scripts listed there. When started from there, SM v7.50 won't show its list of sessions (earlier versions would). However, when started from a normal toolbar CTB, v7.50 does show the list properly.

Thanks for your help.


----------------------------------
SIDE NOTES:
My toolbar AND my User command list are pretty crowded, hence my use of "Load Script File".

I can attach my list of Panes but, given the above, don't think that will help diagnose the issue.

Also note that (I think) SM defaults to changing the text on its CTB to the current session name. I recommend that not be the default since it messes up my toolbar CTB for the "Load Script File" function. It looks like SM assumes it will always have its own CTB, whereas in fact it might be started some other way.

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

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

Post by FluxTorpedoe »

Malarki wrote: 23 Jun 2024 19:57 I've narrowed down the problem. I run the SM script via XY's "User | Load Script File" feature. I have about a half-dozen scripts listed there. When started from there, SM v7.50 won't show its list of sessions
OK, I figured it out, problem comes from a bypass implemented to give a (generous) speed boost to external commands.

I’ll fix that in the next release. In the meantime, quick fix: replace "caption" by "label" in the following line (315)

Code: Select all

// ---------------------------------------------> External access: Stop building session list
	end caller("caption"), , 1;
   ⇒

Code: Select all

// ---------------------------------------------> External access: Stop building session list
	end caller("label"), , 1;
———————————————————————————

As for the CTB name, I get your point, it never occurred to me once that Session Manager could be used without its toolbar button, even when using it via shortcuts! 😁
Well, it’s useful to remember/identify your current session, but you can also have its name on the title bar —or anyway it should work without either.
I have to dig deeper but I’ll figure someting out.

Post Reply