You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3d9d698
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/ignore.md
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,10 +49,6 @@ Minecraft/Website
49
49
!!! note ""
50
50
_This section sourced and adapted from Git's[^1]`.gitignore`[documentation](https://git-scm.com/docs/gitignore)._
51
51
52
-
### Internal Processes
53
-
54
-
When scanning your library directories, the `.ts_ignore` file is read by either the [`wcmatch`](https://facelessuser.github.io/wcmatch/glob/) library or [`ripgrep`](https://github.com/BurntSushi/ripgrep) in glob mode depending if you have the later installed on your system and it's detected by TagStudio. Ripgrep is the preferred method for scanning directories due to its improved performance and identical pattern matching to `.gitignore`. This mixture of tools may lead to slight inconsistencies if not using `ripgrep`.
55
-
56
52
---
57
53
58
54
### Comments ( `#` )
@@ -142,10 +138,6 @@ A `!` prefix before a pattern negates the pattern, allowing any files matched ma
142
138
```
143
139
<!-- prettier-ignore-end -->
144
140
145
-
<!-- prettier-ignore -->
146
-
!!! bug "Directory Exclusion Negation"
147
-
TagStudio attempts to match the behavior of a `.gitignore` file 1:1, however if you don't have `ripgrep` installed on your system and TagStudio falls back to its internal pattern matcher, excluded directories can be overwritten by further negations, unlike `.gitignore` behavior. Be wary that this is **not officially supported**, and this behavior may be removed at any time.
148
-
149
141
---
150
142
151
143
### Wildcards
@@ -275,18 +267,22 @@ Character sets and ranges are specific and powerful forms of wildcards that use
275
267
```
276
268
=== "Ignore all files EXCEPT .jpg files"
277
269
```toml
270
+
# Ignore everything to start,
271
+
# reinclude subfolders,
272
+
# then reinclude .jpg files located anywhere
278
273
*
274
+
!*/
279
275
!*.jpg
280
276
```
281
277
=== "Ignore all .jpg files in specific folders"
282
278
```toml
283
-
./Photos/Worst Vacation/*.jpg
279
+
Photos/Worst Vacation/*.jpg
284
280
Music/Artwork Art/*.jpg
285
281
```
286
282
287
283
<!-- prettier-ignore -->
288
284
!!! tip "Ensuring Complete Extension Matches"
289
-
For some filetypes, it may be nessisary to specify different casing and alternative spellings in order to match with all possible variations of an extension in your library.
285
+
For some filetypes, it may be necessary to specify different casing and alternative spellings in order to match with all possible variations of an extension in your library.
290
286
291
287
```toml title="Ignore (Most) Possible JPEG File Extensions"
292
288
# The JPEG Cinematic Universe
@@ -305,7 +301,8 @@ Character sets and ranges are specific and powerful forms of wildcards that use
305
301
<!-- prettier-ignore -->
306
302
=== "Ignore all "Cache" folders"
307
303
```toml
308
-
# Matches any folder called "Cache" no matter where it is in your library.
304
+
# Matches any folder called "cache"/"Cache" no matter where it is in your library.
0 commit comments