This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-26
Channels
- # announcements (6)
- # beginners (88)
- # calva (12)
- # cider (13)
- # cljs-dev (27)
- # cljsrn (2)
- # clojure (68)
- # clojure-argentina (2)
- # clojure-dev (10)
- # clojure-europe (1)
- # clojure-greece (1)
- # clojure-italy (5)
- # clojure-nl (15)
- # clojure-spec (33)
- # clojure-switzerland (1)
- # clojure-uk (10)
- # clojurescript (121)
- # clojutre (3)
- # code-reviews (2)
- # core-async (1)
- # cursive (10)
- # data-science (1)
- # datomic (21)
- # emacs (10)
- # events (1)
- # fulcro (25)
- # graphql (6)
- # joker (4)
- # kaocha (12)
- # lambdaisland (3)
- # music (2)
- # off-topic (112)
- # om (2)
- # re-frame (25)
- # reagent (29)
- # reitit (93)
- # rewrite-clj (2)
- # shadow-cljs (18)
- # slack-help (4)
- # spacemacs (8)
- # tools-deps (1)
- # vim (2)
- # yada (5)
Is anyone successful able to ignore files when using a projectile project search? googling has given me answers that i feel i tried in the past and never worked.
@drewverlee Projectile should ignore your .gitignore
patterns by default
I can ignore files when searching with ripgrep using the -g!
option followed by the filename pattern. So to find my-function
but not in markdown files I can use
-g!*.md my-function
To search only in .clj files, then just use -g
without the !
@U05254DQM do you happen to know if there's a way to actually include files listed in .gitignore ?
If I read the docs correctly, then you should be able to create a .projectile
file in the same directory as your .gitignore
and starting each line of the pattern with a !
!/src/foo
!*.yml
I guess just copying your .gitignore
file to .projectile
and adding !
to the start of each line would be quickest way.
https://projectile.readthedocs.io/en/latest/projects/#ignoring-filesLet me know if that works or you find a better way 😀
Seems to work but I realized I'm actually more interested in including those files when doing fulltext search (`helm-project-do-ag` et al.)
I think silver searcher should also work, but not all search tools may work, or have different options
Thanks, I'll give that a try