devlog: Auto save

This commit is contained in:
CJ van den Berg 2025-07-16 20:01:46 +02:00
parent 9f8a89356d
commit 64031e4883
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -16,6 +16,16 @@ You can [subscribe to this page via RSS]($link.page('devlog').alternative('rss')
devlog entries in the [archive](/devlog/).
## [Auto save]($section.id("2025-07-16T19:57:32+02:00"))
Implemented auto save and added new configuration options and commands. Auto save mode will trigger
a save operation on every frame if there have been changes to the buffer. There is currently no
debounce besides the frame time. There is a new command `toggle_auto_save` to enable auto save
manually for the current buffer. Also, there is a configuration option `enable_auto_save` to enable
it by default and another configuration option `limit_auto_save_file_types` where you can specify
a list of file type strings (eg. ["zig","rust"]) where auto save should be enabled.
## [new command: toggle_format_on_save]($section.id("2025-07-16T19:53:30+02:00"))
The `Toggle format on save` command will enable/disable format on save just for the current