Page 13 of 35

Re: Session Manager [v3.0 beta 1]

Posted: 10 Oct 2014 21:13
by klownboy
Hi Flux, not really suggestions, but do you have copies of these icons? I'm partial to the blue arrow but that's just me (I can always tweak). As I mentioned before probably because it matches the blue in the XY layout icons seen in my Sept 8 post.
icons_Capture.PNG
icons_Capture.PNG (4.72 KiB) Viewed 4671 times
I can post if you want them even if you don't use. Thanks for maintaining this great script.

Re: Session Manager [v3.0 beta 1]

Posted: 11 Oct 2014 10:09
by FluxTorpedoe
Hi Ken,
Hehe, no I haven't forgotten about these icons. Out of curiosity I just checked the original contribution by Kunkel, and they go way back to 2 years ago — to the day (11 Oct. 2012) !!! :D

Anyway, that's half a solution since I'd rather avoid external resources now, but still, that gave me the incentive to reinstate (and enhance) things as they kinda were... So,
Session Manager Missing Manual wrote: :arrow: Use of external icons to identify active sessions:
A. By default, a "Yellow Star" icon is used to indicate the active session (standard or with layout).
B. Optional: If a "SessionManager.ico" is found in <xyicons>, it will be used instead to indicate the active session (standard or with layout).
C. Optional: If a "SessionManager_Layout.ico" if found in <xyicons>, it will be used instead to indicate the active session with layout.

Notes:
• You can use either B. or C., or both, or none.
<xyicons> usually refers to the following path: "XYplorer\Data\Icons".
Power users: In case you've changed the name of the original script file "SessionManager.xys" into something else (e.g. "Extras_Session_Manager.xys"), you must rename the icons accordingly (e.g. "Extras_Session_Manager.ico" and "Extras_Session_Manager_Layout.ico").
So, no tweaking needed each time Session Manager is updated!
What do you think?

Re: Session Manager [v3.0 beta 1]

Posted: 11 Oct 2014 13:54
by klownboy
Sounds great Flux. So if a user wants to have a different icon for a session with layout or session with no layout he can by simply having the appropriately named icon in <xyicons>. I typically save all sessions with layout anyway so it probably doesn't affect me so much, but nice idea.

Your second note was a little confusing. Are you talking about if someone renamed the icon reference ("base_name") in the script then the "base_name_Layout icon must be used for the active session with layout icon. Someone (like me) really shouldn't need to do that as long as they name their icons in<xyicons> as you described, correct? Thanks.

Re: Session Manager [v3.0 beta 1]

Posted: 11 Oct 2014 14:22
by FluxTorpedoe
Thanks for the feedback Ken!
About the confusing note, it was definitely misleading; I rewrote it, I hope it's clearer now. :)

BTW, you probably already know that, but just in case:
If several of your sessions have the same layout, it can safely be considered the "default" layout, and those sessions could be regular sessions.
Load one of these sessions, then in "Session Manager" > "Layout Tools" > "Update(Save) Default Layout".
You can then delete the layout of all of these sessions, knowing that it will be automatically loaded as soon as you leave a session with layout.

Re: Session Manager [v3.0 beta 1]

Posted: 11 Oct 2014 15:23
by klownboy
Thanks again Flux. Well I did have it wrong. I thought you were referring to renaming the icon file within the script. Instead you were referring to renaming the script itself probably because you're using the script name for the icon name as well.

So based on your discussion, if I have a few sessions that have identical layouts, I should just make it the default layout and then I can delete the layout portion from those sessions. Does that mean necessarily mean I have to have that option selected for "Always load default layout (instead of last) when returning to Standard Sessions"? As I understand it, the option checked forces it to go to the default instead of last, or in other words, unchecked it will go to last instead of default in situations where "last" is different from default.

Re: Session Manager [v3.0 beta 1]

Posted: 11 Oct 2014 18:38
by FluxTorpedoe
Exactly. Well… :)

@all
Maybe it's time I fill in another blank of the missing manual.
Don't be repelled by the density, the examples should be ample enough! 8)
But while I'm at it, I'll write the theory too, for a future compilation...
Session Manager Missing Manual wrote:Explanation of layouts — Notes:

• When using layouts, some sessions may have a layout: Layout Sessions, and some not: Standard Sessions.

• To work with layouts, the only manipulations needed and available are:
— Save or Update the Layout Sessions (the sessions are saved along with their layout).
Optional: (see below for more info)
— Save or Update only the layout of the current session.
— Update the Default Layout.

»»
— Everything else is done automatically behind-the-scenes by Session Manager.
Session Manager Missing Manual wrote:Explanation of layouts — Examples:

• Example 1:
— You have 2 Layout Sessions, saved in Single Pane and with Preview visible; and 4 Standard Sessions for which you'd like to use the default XY layout of Dual Pane and no Preview.
— You have checked the option: "Layouts: Always Load Default Layout (Instead of Last) When Returning to Standard Sessions".
»»
— Each time you leave a Layout Session for a Standard Session, Session Manager will reset the layout by loading the Default Layout.

• Example 2:
— You have 2 Layout Sessions, saved with Single Pane and Preview visible; and 4 Standard Sessions for which you'd like to use the default XY layout, while still remembering your last changes.
— You have unchecked the option: "Layouts: Always Load Default Layout (Instead of Last) When Returning to Standard Sessions".
»»
— Each time you leave a Standard Session for a Layout Session, Session Manager will remember the state of the current layout, by updating its own Last Layout entry, then
— Each time you leave a Layout Session for a Standard Session, Session Manager will reset the layout by loading the previously used Last Layout.

• Example 3:
— Same as 1. or 2. , but instead of using XY's default layout, you'd like your default/base layout to always have the catalog located on the right of the panes.
»»
— Arrange your layout as you like, then define it as the default in "Layout Tools" | "Update Default Layout", then proceed as usual (cf 1. and 2.).
Session Manager Missing Manual wrote:Explanation of layouts — Theory:

Layout Sessions have their layout stored in their own entry in "SessionManager.ini":
— When they're first saved with a layout, or
— When their layout is created or updated via "Layout Tools" | "Save/Update Layout of Current Session".

Regardless of any session, Session Manager stores two other layouts:
— A Default Layout, automatically created on first run, then only overwritten manually via "Layout Tools" | "Update Default Layout".
— A Last Layout, automatically updated each time a Standard Session is left for a Layout Session — and only if the following option is unchecked: "Layouts: Always Load Default Layout (Instead of Last) When Returning to Standard Sessions".

How it works:
— When switching from a Layout Session to another Layout Session, their content is switched, and their layout too.
— When switching from a Layout Session to a Standard Session, their content is switched, but the layout has to be reset somehow.
»» So the layout is reset, either to:
— The Default Layout, if the aforementioned option has been checked, or
— The Last Layout, which was the layout visible while using the last Standard Session in use before a Layout Session was loaded.

Re: Session Manager [v3.0 beta 1]

Posted: 14 Oct 2014 09:50
by FluxTorpedoe
Hi'

Here comes the Release Candidate!
Most interesting changes are:
— Added a new option "Auto-Optimize Tree on Session Change": Before, the tree was optimized by default each time you loaded a session, now you can disable it if you prefer.
— Added the possibility to use you own custom icons for the active session: Please refer to this post for more details and how-to.(*)
— Fixed the great option (you should try it!): "Layouts: Activate Preview When Loading Layout Session with Info Panel Visible". e.g. if you have a session dedicated to the preview of your videos —with single pane, wide info panel and info panel visible— it will automatically activate the preview tab each time you load it (even if you've previously used the Search tab).

(*) Note that will rejoice the RTFM aficionados: I'm starting to compile the various info and "Missing Manual" entries in Session Manager's long-overdue own help… :whistle:

Please comment if you feel something needs more polishing/enhancement!

Have a nice day, 8)
Flux


###########################
### Session Manager v3.0 RC ###
###########################


• REQUIREMENTS: XYplorer >= v14.10.0104 :!:
Previous version v2.71 available here

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

• UPDATE » for layout users updating from v2.x:
— Please refer to this post

• UPDATE » for all others (i.e. updating from v3.x or not using layouts):
— Overwrite your existing SessionManager.xys with latest version

Session Manager v3.0 Release Candidate - Changelog
+ Added option to enable or disable tree auto-optimization on session change
+ Added possibility to use own icons for active sessions w/ or w/o layouts
*! Rewrote "Reorder List of Sessions" code and fixed remaining rare bug
* Rearranged "Options" and "Layout Tools" menus, AutoSave entry…
! Fixed "Layouts: Activate Preview..." option
! Fixed extra feature of Toolbar saving with layout
* Set default of "Layouts: Activate Preview..." to ON for fresh installs
* Set default of "General: Enable Confirmation Dialog..." to OFF for fresh installs

Re: Session Manager [v3.0 RC]

Posted: 14 Oct 2014 17:11
by klownboy
Once again, great job Flux. The "use your own icon" capability is working fine. Thanks for the major update! :appl:

Re: Session Manager [v3.0 RC]

Posted: 14 Oct 2014 20:41
by Filehero
Hi Flux,

thank you very much for the update - and prior efforts. :)

As always, I'm going to use it on different machines and will report back after a while.

Cheers,
Filehero

Re: Session Manager [v3.0 RC]

Posted: 17 Oct 2014 10:38
by autocart
would be nice if it saved and reloaded the state of the current visual filter

EDIT: It does work with VF. It was my mistake.

Re: Session Manager [v3.0 RC]

Posted: 18 Oct 2014 02:10
by yusef88
hi and thanks for this great script i need that menu simple how to remove this text form it, and show sessions at the top of menu

Re: Session Manager [v3.0 RC]

Posted: 18 Oct 2014 08:41
by FluxTorpedoe
Hi'
First, thank you all for your feedback! :)

---------------------------
autocart wrote:would be nice if it saved and reloaded the state of the current visual filter
Hmmm, it should already be working: AFAIK, filtering state is saved by default with the tabsets, then optionally with FolderViewSettings.
Here I have a "Video" session with its main tab filtered by "posters" only with "|{:Image}", it's working fine. I also tried with a fresh install and it's working too…
It must be related to an XYplorer config setting/tweak; could you be more specific on how to reproduce?

---------------------------
yusef88 wrote:show sessions at the top of menu
This need may not be widespread enough to justify an option (unless you're keyboard-driven only?)… So here's a quick how-to:
Look for the "Main Menu" section, and near the end of it, cut the following lines:

Code: Select all

	$Menu = $Menu.$MEN_l_sessions;
	$Menu = $Menu."-"<crlf 2>;
[/size]then paste them near the top of it, just before "if $PRE_CurSess { // if session active", to get something like that:

Code: Select all

	$Menu = $Menu.$MEN_l_sessions;
	$Menu = $Menu."-"<crlf 2>;
	if $PRE_CurSess { // if session active
[/size]
---------------------------
yusef88 wrote:i need that menu simple how to remove this text form it
? Weird wish ! :veryconfused: :kidding: Anyway, here's the how-to:
Look for the "_Save" section, and near the top of it, remove the 4 lines in the middle (and opt. the first ending <crlf>) of this block:

Code: Select all

	$InpSess = input("Save & Use session$d_Save1", "<crlf>
		Enter the name of the tabsets session to save.    <crlf>
		This session will be in use after you press OK.    <crlf 2>
		• The name has to be a valid filename, and can not contain '[' or ']'.    <crlf 2>
		$d_Save2
		", , , "§CANCEL§");
[/size]to get that:

Code: Select all

	$InpSess = input("Save & Use session$d_Save1", "
		", , , "§CANCEL§");
[/size]Now, just out of curiosity, what's bothering you so much with it? It's not something you see very often and the editable field is auto-selected anyway...

Have a nice day, 8)
Flux

Re: Session Manager [v3.0 RC]

Posted: 18 Oct 2014 09:46
by yusef88
@FluxTorpedoe :appl:
feel happy and relief with new menu many thanks :D
Now, just out of curiosity, what's bothering you so much with it? It's not something you see very often and the editable field is auto-selected anyway...
it's about ease of use and preventing dispersion of sight :)
small thing: the line at the begin how to remove it?

Re: Session Manager [v3.0 RC]

Posted: 18 Oct 2014 10:01
by FluxTorpedoe
yusef88 wrote:small thing: the line at the begin how to remove it?
A few lines before "Main Menu", delete or comment out (/* … */) this whole block:

Code: Select all

		if isset($separator) {
			$MEN_l_sessions = "••••••••••••••••••••••••••••"<crlf 2>."-"<crlf 2>.$MEN_l_sessions;
		} else {
			$MEN_l_sessions = "-"<crlf 2>.$MEN_l_sessions;
		}
[/size]
• Regarding the "Save Session" dialog, as I mentioned in the previous post, you can gain even more space (one line) by deleting the first <crlf> located just before the lines you deleted.

Re: Session Manager [v3.0 RC]

Posted: 18 Oct 2014 10:28
by yusef88
looks better now :beer: