5 ms·
It would be nice if it would have a .gitignore like ignore file. Or does it?
by jsilence 7y ago
It would be nice if it would have a .gitignore like ignore file. Or does it?
- rodarmor 7y agoIt tries to ignore common junk files, and it can be configured to ignore things when invoking it with `--glob !PATTERN`, but there isn't anything like a `.gitignore` file at the moment. Were you thinking of a `.gitignore` file that would be global? Like `~/.config/imdl/ignore`, or on a per-torrent basis? I'd like to add a config in the future, and adding files to ignore to the config could be useful.
- jsilence 7y agoI was thinking on a per torrent basis. The .gitignore format is well known and there are a lot of goot templates on github et al, so using them would be a very convenient way to share github managed directories via your tool.
- rodarmor 7y agoThat's a good idea. There's already a `--glob` option, which allows selecting what to include with globs. It's the inverse of `.gitignore`, so `--glob foo` includes foo, and `--glob !foo` ignores foo. I think that the glob library I'm using implements the same syntax as `.gitignore`, so it would be easy to add an `--ignore-file PATH` option. I opened an issue to track this: https://github.com/casey/intermodal/issues/378 https://github.com/casey/intermodal/issues/378