From 9f8a89356d103a6deade365009a4219a43ab47b7 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 16 Jul 2025 19:56:48 +0200 Subject: [PATCH 1/2] devlog: new command: toggle_format_on_save --- content/devlog/2025.smd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/devlog/2025.smd b/content/devlog/2025.smd index d80b964..3ec4362 100644 --- a/content/devlog/2025.smd +++ b/content/devlog/2025.smd @@ -16,6 +16,12 @@ You can [subscribe to this page via RSS]($link.page('devlog').alternative('rss') devlog entries in the [archive](/devlog/). +## [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 +buffer. + + ## [configurable file types]($section.id("2025-07-14T18:55:02+02:00")) You can now modify the configuration of file types. There is a new command `Edit file type From 64031e488398e8d9dab505414dc5c3cf639a0bfa Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 16 Jul 2025 20:01:46 +0200 Subject: [PATCH 2/2] devlog: Auto save --- content/devlog/2025.smd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/devlog/2025.smd b/content/devlog/2025.smd index 3ec4362..8608ae4 100644 --- a/content/devlog/2025.smd +++ b/content/devlog/2025.smd @@ -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