File Exchange

image thumbnail

SessionManager

version 1.10.5.6 (159 KB) by Lorenzo C.
A session manager (also with User Interface) saving working directory, path and editor files.

3 Downloads

Updated 18 May 2018

View License

A simple collection of functions useful to manager multiple projects. You can save, load your projects and switch between them. Every time you load a project, it reopens all your files into the editor and set current search path, granting you to start to code without reset all your environment stuff.
MAIN FEATURES
* Save and Load sessions, system wide or locally
* Switch session via command line
* User-friendly dialogs
* Name collision warnings
* A complete user interface to manage all sessions

STORED DATA
Each session is saved in a .mat file with .msession extension in your %userpath% folder on you local machine. This guarantees a safe place for sessions regardless of your current working path. Each session file contains:
* Files opened in matlab editor
* Current directory path
* Current working path

BASIC USAGE

type 'SessionManager' in console to open the user interface.
See html help for more details about access session manager function programmatically.

Comments and Ratings (5)

Lorenzo C.

I'm really sorry it broken, unfortunately i have not R2018b to check this error. hopefully you can continue to access the programmatic interface. As soon as possible i will try to fix it maybe with a new interface built with application api.

Henrik

Works great in R2018a.
Unfortunately it's broken in R2018b:
Undefined function 'getViewport' for input arguments of type 'handle.handle'.
Error in SessionManager>listboxSessions_CreateFcn (line 165)

Lorenzo C.

Hi Mehmet,
Thank you for you comment.

About save info in a mat file, i just use builtin matlab functions and they works as expected, so i can't help about.

I code this session manager as spin-off project, so i will add a complete related GUI when i will have some free time to spend here, i can just tell i don't add the gui shortly but it is yet in my plans for this contribution. At this stage i just provide some dialog boxes taking care of missing parameters and some name-collision checking to avoid to overwrite files or call two projects with the same name.

Hi Lorenzo,
Thank you four your valuable contribution to the community.

I'm also working on a session manager project for MATLAB. Your code is more professional than mine. I also tried to save the session info in a .mat file however it is damaged in an unrecoverable way for some unknown reasons. Then, I tried to write all the info in a .txt file in a systematic way.
Will you/do you consider to provide a GUI for your session manager?

Updates

1.10.5.6

Bugfix: absolute path recovering for linked sessions.

1.10.2.1

Bugfix: naming a session 'LOCAL SESSION' conflicts with local session list display.

1.10.0.0

Fixed new session button bug.

1.9.0.0

Minor bugfix - 'more' callback now show information about current local session instead to throw an session not found error.

1.7.0.0

Added a new complete user interface. Type 'SessionManager' to use it!

1.5.0.0

Added html online help files i forgot in previews releases

1.4.0.0

Fixed a collateral bug on search path loading (restoring path ignore changes in global matlab searchpath due new toolbox or delete toolbox or changed directories). Now the path will be loaded incrementally taking account of changes.

1.0.0.0

Description update.

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux