This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-28
Channels
- # aleph (50)
- # announcements (3)
- # aws (35)
- # beginners (74)
- # boot (25)
- # calva (39)
- # cider (18)
- # clara (2)
- # cljdoc (18)
- # cljs-dev (24)
- # cljsrn (11)
- # clojure (166)
- # clojure-europe (13)
- # clojure-italy (5)
- # clojure-nl (6)
- # clojure-spec (35)
- # clojure-uk (263)
- # clojurescript (22)
- # clojutre (1)
- # code-reviews (34)
- # cursive (58)
- # data-science (2)
- # datascript (4)
- # datomic (4)
- # duct (6)
- # emacs (7)
- # figwheel-main (9)
- # fulcro (2)
- # graphql (3)
- # hoplon (22)
- # hyperfiddle (2)
- # juxt (5)
- # kaocha (6)
- # leiningen (33)
- # luminus (15)
- # off-topic (1)
- # pedestal (5)
- # reagent (18)
- # reitit (12)
- # shadow-cljs (171)
- # vim (5)
Hi, when I do SPC /
to do smart search in my spacemacs it does search everywhere. That's all nice, but if I want to exclude for example resources not to include compiled cljs how do I achieve that? Basically I want to remove content of .gitignore
from the search results. Any recommendations?
I see you meant find-in-files, not find-file ๐. Look into https://github.com/BurntSushi/ripgrep โ that understands .gitignore
, and I imagine Spacemacs will use it automatically if itโs installed
https://github.com/syohex/emacs-helm-ag works nicely
@piotr.kurnik using ripgrep or silver-searcher should respect your .gitignore
.
To exclude certain file patterns with SPC /
you can also use -g!
to exclude files or -g
(although this may not work for all search tools). For example to exclude png images from a search, I would use -g!*.png
at the start of the pattern and then a space followed by the term I was searching for.
@U05254DQM thanks a lot! I will give it a try