summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-10-17 20:51:33 -0400
committerpommicket <pommicket@gmail.com>2023-10-17 20:51:33 -0400
commit29282f362d5f663ec3da17b135751f3b9b2bd0fd (patch)
tree0be73a38dece65c088976b2aace033b21377f973 /README.md
parent85c30e8fb21170d602efb53a86c0000a3aa79cbf (diff)
accept regex for path-specific settings
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 2147c06..e6379ab 100644
--- a/README.md
+++ b/README.md
@@ -97,6 +97,19 @@ You can set settings for specific programming languages like this:
tab-width = 2
```
+Or settings for specific paths like this:
+
+```
+[/foo//core]
+# set tab width in /foo to 17
+tab-width = 17
+
+# PCRE regex is supported! (the start is anchored but the end isn't)
+[~/foo/.*\.hmtgf//core]
+# set tab width for .hmtgf files in ~/foo
+tab-width = 9
+```
+
To reset your ted configuration to the default settings, delete your ted.cfg file (`~/.local/share/ted/ted.cfg` on Linux,
`C:\Users\<your user name>\AppData\Local\ted\ted.cfg` on Windows) or move it somewhere else.