projectile icon indicating copy to clipboard operation
projectile copied to clipboard

.projectile file is driving me nuts

Open tx46 opened this issue 8 months ago • 3 comments

I have a (where pr=project root, confirmed via projectile-project-root) pr/lib (build garbage) and pr/src/lib dir.

I have tried pr/.projectile file:

lib/   # ignores everything both pr/lib and pr/src/lib
lib    # same as above
-lib   # same as above
-lib/  # same as above
/lib/  # works, but ONLY if i invoke projectile-find-file from pr, otherwise it INCLUDES both pr/lib AND pr/src/lib
/lib   # same
-/lib  # same
-/lib/ # same

help me out here, how can I get my head around this? this is complicated by the fact that there's native indexing (previously hybrid??) and hybrid (not same as previous hybrid) and alien.. i dont care which one i use as long as i get consistent results.

tx46 avatar Apr 20 '25 10:04 tx46

Admittedly, for a very long time I've just used the alien indexing which completely ignores .projectile's filtering of results. I will revisit it at some point, but I can't promise when this will happen.

bbatsov avatar May 21 '25 05:05 bbatsov

Btw, to be clear - you expect this to behave like .gitignore, right?

bbatsov avatar May 21 '25 05:05 bbatsov

Btw, to be clear - you expect this to behave like .gitignore, right?

I'd say yes, but the point is it needs to work consistently. :) It also starts behaving differently inside and outside git repos, further confusing things.

tx46 avatar May 22 '25 07:05 tx46