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
feat(config): fold [skip_paths] into ASIMOV_SKIP_PATHS and teach doctor about it
Follow-up to the [skip_paths] work: append the configured paths to
ASIMOV_SKIP_PATHS at definition time instead of merging them into a local
array in each consumer, so the find expression and the Spotlight pass stay
in step, add the section to the doctor config validator (it reported
[skip_paths] as an unknown section), and cover both in tests.
The behaviour test passed an absolute path to create_project, which prefixes
$HOME - so the project was built outside the skipped directory and the test
passed for the wrong reason. Fixed, plus a control case that fails without
the config, a multi-entry case, and one proving [fixed_dirs] still wins
inside a skipped path.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
7
7
## [Unreleased]
8
8
9
9
### Added
10
-
-`[skip_paths]`configuration option to skip sub directories in search.
10
+
-`[skip_paths]`config section: name directories that Asimov should never search, alongside the built-in `~/.Trash` and `~/Library`. Thanks [@lunaluxie](https://github.com/lunaluxie)!
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,19 +274,19 @@ extra = ~/my-build-cache # plus any paths you name (always excluded when
274
274
extra = ~/golang/pkg/mod # e.g. a Go module cache under a custom GOPATH
275
275
```
276
276
277
-
### Exclude paths from search
278
-
Sometimes you may want to exclude directories from the search. By default, Asimov excludes `~/.Trash`
279
-
and `~/Library` to avoid modifying Time Machine exclusions for these paths. You can add additional paths to the search exclusion list:
277
+
### Skip parts of your home directory
278
+
279
+
Asimov never descends into `~/.Trash` or `~/Library`. Add directories of your own under `[skip_paths]` and they're left alone too - not searched, never excluded:
280
280
281
281
```ini
282
282
[skip_paths]
283
-
extra = ~/Music
283
+
extra = ~/Music# one "extra =" line per directory
284
284
extra = ~/Pictures
285
285
```
286
286
287
-
`skip_paths` does not exclude global caches defined in `fixed_dirs`.
287
+
This only narrows the *search*. Global caches you opted into under `[fixed_dirs]` are still excluded, even inside a skipped path.
288
288
289
-
If your code is contained to a single subfolder, you may want to only search that subfolder instead by specifying the directory argument in the CLI ([see usage](#usage)).
289
+
If all your code lives in one folder, scanning just that folder (`asimov ~/Code`, see [usage](#usage)) is usually simpler than skipping everything else.
0 commit comments