Save on lost focus

Post Reply
sorim
Posts: 5
Joined: 04.10.2020 09:54

Save on lost focus

Post by sorim »

Hello

I already find the plugin auto save, which saves the tabs every 30 seconds and also the possibility to save on exit.
What I am searching is a possibility to save alle tabs if I change the focus from CudaText to an other progrman (using for example Alt-Tab)

How can I do that?
If there is not implemented can you please put it on the todo list?

Thanks for your really great program.
There are so many good featurres implemented, but most of them have to be installed manually. Why not installing it by default?
For Example: the Macro Menu, the Tools Menu
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Because both Macros+ExtTools plugins add the startup time (300ms -> e.g 700ms)
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Pls test, with new CudaText beta:
http://uvviewsoft.com/c/

AutoSave is in beta
-delete release
-menu item 'plugins / addon manager / install from github",
URL https://github.com/cudatext-addons/cuda_auto_save
sorim
Posts: 5
Joined: 04.10.2020 09:54

Post by sorim »

It works perfect!


I changed the settings

[op]
save_interval=0
save_before_closing_tab=0
on_deactivate=1 <=====

After changing settings, I have to exit CudaText and open it again.

Loaded session: "history session.json", 10ms, 3 file(s)
Startup: 840ms, plugins: 170ms (auto_save 16ms, exttools 141ms, macros 15ms)
Init: cuda_sample1
Init: cuda_backup_file
Auto-saved (app deactivated): C:\Program\Cuda\py\cuda_auto_save\readme\readme.txt <=====
Post Reply