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

Discuss and share scripts and script files...
shimamiya
Posts: 13
Joined: 29 Jun 2023 12:29

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

Post by shimamiya »

Great script, very useful. Just one issue for me, if I enter the path to an icon, it appears on the toolbar, but as soon as I click the button it disappears again and reverts to "text:‹ Tabsets ›"

Am I doing something wrong?

Malarki
Posts: 185
Joined: 03 Dec 2019 02:51

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

Post by Malarki »

Not your doing - it's a minor issue within the script. See previous notes here; it will probably be fixed in next release.

shimamiya
Posts: 13
Joined: 29 Jun 2023 12:29

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

Post by shimamiya »

Malarki wrote: 18 Dec 2024 17:28 Not your doing - it's a minor issue within the script. See previous notes here; it will probably be fixed in next release.
No problem, thank you.

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

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

Post by FluxTorpedoe »

shimamiya wrote: 18 Dec 2024 17:04 Great script, very useful. Just one issue for me, if I enter the path to an icon, it appears on the toolbar, but as soon as I click the button it disappears again and reverts to "text:‹ Tabsets ›"

Am I doing something wrong?
Hello, and glad you like the script!
The reason why your icon disappears is because, by default, it is replaced by the session name if no icon was assigned to the session — or by "‹ Tabsets ›" in the (unusual) case like this one where you’re not using a session.

If you want to keep a generic icon in your toolbar, check this option in Session Manager:

Code: Select all

Options > Button: Display Generic Icon (Instead of Session Name) If No Custom Icon Defined
This will assign a generic icon to the button, which you can then replace with your own custom icon.

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

@all / future newcomers
When checking this with a fresh new install, I noticed that the Tabsets feature is now disabled by default!?
In the next Session Manager version, I’ll add the check and ability to enable it on Session Manager first run / maintenance run.

It’s a bit slim to justify an update (even with the last mini-fix), so if you have any other idea or feature request, don’t hesitate!

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

In the meantime, Happy Holidays / Merry Christmas to you all 8)

   Flux

Lusayalumino
Posts: 109
Joined: 13 Aug 2018 07:16
Location: USA

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

Post by Lusayalumino »

Feature request? It's hard to improve upon perfection!

I use this every single day; many times a week I'm generating new tabsets or editing existing tabsets. This little software – combined with XYPlorer – is A GOD AMONG MEN!

I've said it before, but thank you.

There is one little thing (and I'm not even sure it's actually Session Manager) -- many of my directories don't remember the folder views (Save Folder View #472;). I have always assumed it's because they're saved in one of my many, many, many tabsets. It would be nice if, there was a way to manage this (e.g. a toggle to turn off Session Manager's override). Like I said:
1) I'm not sure this is because of Session Manager
2) It's a very minor thing
Last edited by Lusayalumino on 24 Dec 2024 19:12, edited 1 time in total.
XYPlorer, Great Form -- Awesome Function

Malarki
Posts: 185
Joined: 03 Dec 2019 02:51

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

Post by Malarki »

If you want to keep a generic icon in your toolbar, check this option in Session Manager:
Options > Button: Display Generic Icon (Instead of Session Name) If No Custom Icon Defined
This will assign a generic icon to the button, which you can then replace with your own custom icon.
I somehow didn't notice this option before. Enabling it seems to have fixed the issue I had (and referred to here a few days ago) of my Toolbar button being replaced with the current session name. In my case Session Mgr is one of several scripts available on that button which just runs command #10 "User | Load Script File".

So, all good now and thanks again for the great tool.

Daniel0312
Posts: 223
Joined: 15 Feb 2016 10:48

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

Post by Daniel0312 »

I've been using SM as long as XY : it's so well integrated that it seems to be part of it !
For the first time ever, I got a script error today, when re-ordering sessions.
There's a ')" missing in the regex line 2654, adding it solved the error.
Congrats for the great work and Happy New Year
Daniel
Windows11 23H2 / XY latest stable

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

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

Post by FluxTorpedoe »

Thanks a lot everyone for the very kind words! :D

@Lusayalumino
I’ll check that. Not sure indeed if it’s linked to Session Manager, but I don’t remember straight away how much I may have integrated when I included Extras settings.

@Daniel0312
Strange, but thanks for the info. At a quick glance, I don’t see the problem in the regex but I’ll look into it.
Did it happen when reordering sessions whose names contain unusual characters, such as ( or ” ?

Lusayalumino
Posts: 109
Joined: 13 Aug 2018 07:16
Location: USA

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

Post by Lusayalumino »

Thanks; I look forward to learning more. Have a great weekend (almost).
XYPlorer, Great Form -- Awesome Function

Daniel0312
Posts: 223
Joined: 15 Feb 2016 10:48

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

Post by Daniel0312 »

Since adding the ) solved the issue, I quickly forgot about it :)
No "problem" characters in the names.
Daniel
Windows11 23H2 / XY latest stable

SL09
Posts: 48
Joined: 13 Jun 2009 13:54

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

Post by SL09 »

Session Manager does not work

If I try to install it with
::load "SessionManager.xys";
there is a message the script file was not found

::load "C:\Program Files (x86)\XYplorer\xyscripts\SessionManager.xys"
starts, but he script stops in the sub "_CreateToolbarButton";
and marks the line
writefile($GEN_ini, "[General]<crlf>Reserved=0<crlf>Version=0<crlf>", , "tu");

There is a new icon iwth the text < Tabsets >

Same result if I click on the icon that exists already (maybe from an earlier try)

Is this an error that results from the installation on the system drive ??

jupe
Posts: 3192
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

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

Post by jupe »

Likely because you have put it in Program Files folder, which is a write protected location, move script into your Scripts folder,

Scripting | Go to Scripts Folder.

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

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

Post by autocart »

Hi flux,
one old-standing issue revisited and one crazy cheesy idea,

1) Old issue:
When I save a session (mostly a temporary one) under a new session name, then it gets misplaced in the drop-down menu.
When I reorder the sorting in the edit box, there are multiple blank lines between the new session name and the preexisting session names.
I have to manually delete these blank lines for the menu to look ok again.

2) Crazy idea:
I notice that I find myself having the need to often switch between two sessions. Probably too complicated both for coding and also for application in the UI, but I see 2 possible solutions:
A) Keyboard-Shortcuts for (selected or all) sessions.
B) Being able to define sessions per pane, so that I can have one session open in pane 1 and another session in pane 2.
However, I completely understand if you don't want to go down either of these paths. But I thought, before I don't mention it, I just write down this feedback. Maybe something good - in any form - will come from it.

EDIT: Thinking about it, a keyboard shortcut for sessions would be preferable. Maybe also easier to implement and use?

Regards, auto

Lusayalumino
Posts: 109
Joined: 13 Aug 2018 07:16
Location: USA

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

Post by Lusayalumino »

Hi autocart: forgive me if this post misses your point, but I thought I'd share this as it's been a terrific tool...

I use a "ROCKER" Script on a User Button to get 4 different Layouts to load (Left-Click executes two scripts / Right-Click executes two scripts):

On left-click:
if(get("#663")) {loadlayout("1 Pane Minimal");}
else {loadlayout("1 Pane Normal");}

On right-click:
load "RightClickLayoutDualPanes.xys";

I named the User Button: "Panes Layout Rocker Toggle" -- I could get more functionality out of it, if I assigned another script to Middle-Click. Here's the contents of my rocker script:

RightClickLayoutDualPanes.xys
if(get("#663")) {loadlayout("2 Panes Minimal");}
else {loadlayout("2 Panes Normal");}

RESOURCES:
- Gratitude to bdeshi for the View Rocker: viewtopic.php?p=169041
- Gratitude to jupe, highend, and klownboy who taught me how to do this: viewtopic.php?p=173220&hilit=if+get+%23 ... ut#p173220
XYPlorer, Great Form -- Awesome Function

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

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

Post by FluxTorpedoe »

Hi everyone,

The new 7.90 version is ready, I think I have fixed / addressed all issues that were raised and implemented the ideas as best as possible, but let’s do some final checks.
You can see the list in the Session Manager Changelog.

So let’s recap to be sure:
Lusayalumino wrote: 24 Dec 2024 17:29 There is one little thing (and I'm not even sure it's actually Session Manager) -- many of my directories don't remember the folder views (Save Folder View #472;). I have always assumed it's because they're saved in one of my many, many, many tabsets. It would be nice if, there was a way to manage this (e.g. a toggle to turn off Session Manager's override).
⮞ After digging a bit, it’s the tabsets feature itself which takes precedence over FVS (see changelog for details). The best I could do was to add an action "Restore Folder View Settings of All Visible Tabs" (i.e. it doesn’t affect tabs in hidden pane). I also made it available as an external command, so it can easily be assigned to a keyboard shortcut, combined with the command to load a specific session, etc.

———————————————————————————
Daniel0312 wrote: 01 Jan 2025 18:19 For the first time ever, I got a script error today, when re-ordering sessions.
There's a ')" missing in the regex line 2654, adding it solved the error.
⮞ This one left me perplexed because I just couldn’t find an error in the regex. Maybe there was a corruption in your file… Can you send me the line you fixed so I can compare it with the default? Note that in v7.90 I’ve updated the action to reorder the list of sessions, but not the regex itself.

———————————————————————————
autocart wrote: 26 Feb 2025 11:06 1) Old issue:
When I save a session (mostly a temporary one) under a new session name, then it gets misplaced in the drop-down menu.
When I reorder the sorting in the edit box, there are multiple blank lines between the new session name and the preexisting session names.
I have to manually delete these blank lines for the menu to look ok again.
⮞ Well, this was more "bad design" than an bug, the empty lines acted as a separator between the manually ordered sessions and the rest, but on the next reorder those sessions were considered commited, and the new ones appened… Well, this wasn’t clean, nor clear, so I rewrote the thing (see changelog). You should find the new behavior much better!

———————————————————————————
autocart wrote: 26 Feb 2025 11:06 2) Crazy idea:
I notice that I find myself having the need to often switch between two sessions. Probably too complicated both for coding and also for application in the UI, but I see 2 possible solutions:
A) Keyboard-Shortcuts for (selected or all) sessions.
B) Being able to define sessions per pane, so that I can have one session open in pane 1 and another session in pane 2.
However, I completely understand if you don't want to go down either of these paths. But I thought, before I don't mention it, I just write down this feedback. Maybe something good - in any form - will come from it.
EDIT: Thinking about it, a keyboard shortcut for sessions would be preferable. Maybe also easier to implement and use?
⮞ There are already lots of way to achieve that, some of them ultra-fast!
   – Ctrl+Click (default mouse modifier) on Session Manager button will switch between the last 2 sessions used
   – Just pressing eg ~ (or any CKS assigned to "Quick Load"), will launch the Quick Load dialog. Then if you press the first letter(s) of a session and Enter, it will load it, eg press ~ then p will launch your session "Photo". And if you leave empty, it will switch between the last 2.
   – As a last but powerful resort, you can already assign custom keyboard shortcuts to load any of your sessions, and much, much more.
⮚ You’ll find more info on all of this and more in Session Manager menu Options > Help: Cheat Sheet...

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

@all
   Don’t hesitate to give your pre-feedback before I release the update (especially if I’ve missed or misinterpreted something).

Have a nice day, 8)

    Flux

Post Reply