feat(tasks): mark task buffers as clean when task exits

This commit is contained in:
CJ van den Berg 2025-01-26 20:18:31 +01:00
parent a28f1db4c7
commit 304a62dfdc
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 18 additions and 2 deletions

View file

@ -4724,6 +4724,14 @@ pub const Editor = struct {
}
pub const switch_case_meta = .{ .description = "Switch the case of selection or character at cursor" };
pub fn forced_mark_clean(self: *Self, _: Context) Result {
if (self.buffer) |b| {
b.mark_clean();
self.update_event() catch {};
}
}
pub const forced_mark_clean_meta = .{ .description = "Force current file to be marked as clean" };
pub fn toggle_eol_mode(self: *Self, _: Context) Result {
if (self.buffer) |b| {
b.file_eol_mode = switch (b.file_eol_mode) {