History sessions are not restored when open a file

Post Reply
notteumani
Posts: 4
Joined: 04.09.2020 06:35

History sessions are not restored when open a file

Post by notteumani »

This happens on version 1.110.3.0 Windows x64. Although I have turned on One Instance, Auto Save Session and Reopen Session in settings.
In the previous releases, I can open a file from command line "cudatext.exe [filename]" or from Windows Explorer with all saved sessions restored together. But in 1.110.3.0, only the file from command line or Explorer is opened and the history sessions are not restored. So if I close cudatext, the history sessions are cleared. But if I just open cudatext.exe, the history sessions can be restored correctly.
The only way to keep history sessions when open a file is to open the file when a cudatext instance is already launched with sessions restored. I believe this is a bug. Hope this will be fixed soon. Thanks.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

It is valid report.
Made a change

+ add: before: editor doesn't load last session when command-line file is opened; now: it also doesn't save current (empty) session in this case, so old big session is not lost

Pls test beta
http://uvviewsoft.com/c/
notteumani
Posts: 4
Joined: 04.09.2020 06:35

Post by notteumani »

Thanks for the beta. However the history sessions are still not loaded when open a file.
Here are what changed:
1. The "history session.json" file will be forever unchanged no matter what I do if I open a file from command line.
2. Only if I just open cudatext.exe, the sessions can be loaded and every change I made would be written to "history session.json".
The version everything works fine that I'm using is 1.97.5.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Yes, it is so, and it's needed function.
EDIT I cannot find the original talks now, it was needed to SKIP current session when user opens file from Total Commander or any file manager.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Talks are in github (in russian, no URL)
1.107.5 (2020/07)
* change: if command-line files/folders passed, don't load session on start (thanks @wb027)
notteumani
Posts: 4
Joined: 04.09.2020 06:35

Post by notteumani »

Thanks a lot. I found the talk on Github.
Sorry to hear this feature is removed. I liked to have sessions loaded no matter from where I open a file. Cuda and Notepad++ are the only 2 editors that support both tabs and sessions, and Cuda is much better than N++.
Is there any plan to have an option to enable the feature, like "Load Sessions Always", in settings? Or this feature won't be back in foreseeable future?

Talking about N++ reminds me of a feature in N++. In N++ when choosing encodings, N++ shows the name of the code page instead of showing the code page number. I like the idea of showing the numbers, but it's more intuitive to show the name at the same time. Is it possible for Cuda to show the name and put the number in brackets?
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

I just added the asked option to beta 1.111.0
http://uvviewsoft.com/c/
Pls test.

Encodings? not sure it's worth to do it. Not simple for me.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Encodings. IMO not good to show name in the statusbar - VSCode don't show name there (but it shows name in the menu)
Make it by option? we have too many options.
notteumani
Posts: 4
Joined: 04.09.2020 06:35

Post by notteumani »

Thanks a lot. I'm using the beta for a day and everything works fine.
Thank you for the update and for your patience.

P.S: The encoding thing is just a thought. It's nothing much. Please don't mind. Thanks again for your work!
Post Reply