tickgit icon indicating copy to clipboard operation
tickgit copied to clipboard

some kind of .ignore file?

Open mreinstein opened this issue 5 years ago • 6 comments

I'm running this on a node/javascript project, and would like to ignore files in node_modules/, bundle.js, etc. Apart from cobbling together an exact list of directories to watch, it would be great to be able to run tickget status in my working directory and ignore the parts I don't care about (vendor code, etc.)

Regardless, tickgit is a really cool concept!

mreinstein avatar Dec 22 '19 20:12 mreinstein

Thanks for the support! I hope we can make something useful for a lot of developers.

Regarding your comment on ignoring vendor directories, we use a dependency called enry to detect the language of files as they are searched. enry has a way of doing "vendor detection" which we use here: https://github.com/augmentable-dev/tickgit/blob/master/pkg/comments/comments.go#L88 to ignore (at least when looking for TODOs).

Did you run tickgit status or tickgit todos and see output from files in node_modules? I will add a test case and investigate!

patrickdevivo avatar Dec 22 '19 22:12 patrickdevivo

I also agree that adding a way to ignore certain files or patterns (and do other types of config when the CLI is run) would be very useful - perhaps via a .tickgit or a tickgit.yml

patrickdevivo avatar Dec 22 '19 22:12 patrickdevivo

On further inspection of the results you're right; it's not including node_modules.

adding a way to ignore certain files or patterns (and do other types of config when the CLI is run) would be very useful

I wonder if it might make sense to just use the identical rules in .gitignore if it's present? I'm not totally sure if this is right, just a thought. It stands to reason that anything one is ignoring from git would also be ignored by tickgit

mreinstein avatar Dec 22 '19 23:12 mreinstein

I wonder if it might make sense to just use the identical rules in .gitignore if it's present? I'm not totally sure if this is right, just a thought. It stands to reason that anything one is ignoring from git would also be ignored by tickgit

That makes sense, though I could certainly see cases where a user might want to ignore certain paths that are in the git repo, such as a non-standard dependency directory/area of third party code; or even just a folder/file they want to ignore adhoc (for instance, a test fixture or sample file)

patrickdevivo avatar Dec 23 '19 02:12 patrickdevivo

For zig we have a vendored version of musl in lib/libc/musl: I'd like a way to exclude it.

daurnimator avatar Dec 30 '19 06:12 daurnimator

Another request for this functionality: https://github.com/fyne-io/fyne/issues/683

patrickdevivo avatar Feb 17 '20 20:02 patrickdevivo