summaryrefslogtreecommitdiff
path: root/ted.cfg
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2024-07-12 16:26:25 -0400
committerpommicket <pommicket@gmail.com>2024-07-12 16:26:25 -0400
commitdd6dcaec09426e786f5265fcb08dea283cb63fc0 (patch)
treea128399bebb00c80d33bcdac1a472450c0643ad8 /ted.cfg
parent71f1f03835566abd979fb1cb572a5195611ac9f7 (diff)
Add sync option to control how much stuff to sync to disk
Diffstat (limited to 'ted.cfg')
-rw-r--r--ted.cfg6
1 files changed, 6 insertions, 0 deletions
diff --git a/ted.cfg b/ted.cfg
index ea59963..5a20477 100644
--- a/ted.cfg
+++ b/ted.cfg
@@ -133,6 +133,12 @@ root-identifiers = .ted-root, .ted-root.out, Cargo.toml, make.bat, CMakeLists.tx
# writing to the file (prevents loss of data if power goes out mid-write or something).
# the backups are deleted immediately after writing.
save-backup = yes
+# how much data to sync to disk on :save
+# this can be one of:
+# - none: don't sync to disk (you may lose data if power goes out)
+# - full: sync data and metadata to disk (fsync)
+# - data: sync data to disk but not metadata (fsyncdata) (on Windows this is the same as full)
+sync = data
# whether to save files with \r\n line endings.
crlf = no
# same as crlf setting, but ignored on non-Windows operating system.