From 29282f362d5f663ec3da17b135751f3b9b2bd0fd Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 17 Oct 2023 20:51:33 -0400 Subject: accept regex for path-specific settings --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'README.md') 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\\AppData\Local\ted\ted.cfg` on Windows) or move it somewhere else. -- cgit v1.2.3