save session on exit

Post Reply
miro.matas
Posts: 66
Joined: 26.08.2013 06:16

save session on exit

Post by miro.matas »

I can see setting ui_reopen_session on the CudaText Options, and we have plugin Session Manager.
Q1/ term session from UI and term session from plugin - are the same?
Q2/ will be possible to add to CudaText UI/settings some commands/actions on Exit event? (my aim - Save Session on Exit, like ui_save_session_on_exit)
TIA
Miro
User avatar
kvichans
Posts: 203
Joined: 07.10.2012 05:45

Post by kvichans »

Q1. Yes.
Q2. Show options and actions when session is not saved on exit. It's a bug
CudaText 1.163, TC9.51x32, Win10x64(1920x1080)
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Session must always save on exit (already)
User avatar
kvichans
Posts: 203
Joined: 07.10.2012 05:45

Post by kvichans »

Q2. I know case! If not user closes Cud but Win does (on "shutdown") - session is not saved.
CudaText 1.163, TC9.51x32, Win10x64(1920x1080)
miro.matas
Posts: 66
Joined: 26.08.2013 06:16

Post by miro.matas »

hmmm… something broken on my side
if I will create a new CudaText instance (fresh download to new folder) and install Sess. Manager - it works fine, on Alt+F4 will save current named session
but do not save session on exit on my alredy used instance, uninstall SessMan, restart, install it again - not helps, reset python plugins not helps…
how to trace where is a problem?
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Check that option ui_reopen_session: true.
miro.matas
Posts: 66
Joined: 26.08.2013 06:16

Post by miro.matas »

no, my usage is different… that option is not for me, I am very sorry
my daily work (approx. 90% of time of CudaText) is based on Projects and "connected" Sessions
Favorites are not able to open Project + Session as one step
I do not find an option for linking Projects and Sessions
…so I modify Tools (menu Tools, via plugin External Tools)
and here open ~\CudaText\cudatext.exe + Params: "C:\Users\miroslav.matas\Documents\Current Works.cuda-proj" "C:\Users\miroslav.matas\Documents\Current Works.cuda-session"
(approx. 10 similar items at Tools)

(BTW - ui_reopen_session is True on my CudaText)
User avatar
kvichans
Posts: 203
Joined: 07.10.2012 05:45

Post by kvichans »

>tool to open ...\cudatext.exe + Params: "...\Current Works.cuda-proj" "...\Current Works.cuda-session"

Cool trick!
CudaText 1.163, TC9.51x32, Win10x64(1920x1080)
Post Reply