-
Notifications
You must be signed in to change notification settings - Fork 4
Advanced examples cookbook
Darren Li edited this page Nov 27, 2024
·
1 revision
command | docfd
No paths should be supplied as arguments in this case. If any paths are specified, then stdin is ignored.
docfd --glob 'relative/path/glob' --glob '/absolute/path/glob'
Resolution of relative globs starts at current working directory.
docfd [PATH]... ?
The ?
can be in any position in the path list.
If any of the path is ?
, then file selection
of the discovered files
via fzf
is invoked.
docfd [PATH]... --paths-from paths.txt
The final list of paths used is then the concatenation
of PATH
s and paths listed in paths.txt
, which
has one path per line.
In this case, the default cache soft limit might not be enough or you might want to keep a stable cache for this collection of files
The following script template may be handy in this situation for creating a collection specific cache
#!/usr/bin/env bash
docfd --cache-dir /large/collection/.cache --cache-soft-limit 20000 /large/collection