This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-07
Channels
- # announcements (12)
- # autochrome-github (4)
- # babashka (27)
- # babashka-sci-dev (2)
- # beginners (80)
- # calva (34)
- # cider (8)
- # clj-kondo (77)
- # clojars (34)
- # clojure (50)
- # clojure-europe (35)
- # clojure-nl (4)
- # clojure-uk (5)
- # clojured (2)
- # clojurescript (26)
- # core-async (4)
- # cursive (4)
- # datahike (4)
- # datomic (40)
- # emacs (7)
- # etaoin (1)
- # fulcro (12)
- # google-cloud (143)
- # hyperfiddle (1)
- # integrant (2)
- # jobs (1)
- # malli (15)
- # membrane (17)
- # off-topic (38)
- # pathom (1)
- # reagent (4)
- # releases (2)
- # remote-jobs (2)
- # sci (1)
- # shadow-cljs (10)
- # spacemacs (7)
- # tools-deps (5)
- # vim (6)
- # xtdb (37)
when i try to do a project wide search i get "option ignore is ambiguous...." instead of the expected search results.
Spacemacs doesn't have a lot of smarts about how it calls the underlying searchers like ack, pt, ag, etc (see the SPC s
menu for the list). This means that sometimes you mean to search for things but you're accidentally passing options to the searcher. (Try prefixing your search with --
, which is an old unix CLI trick. Dunno if that will help; just a guess.) This is frustrating at times but also can be powerful to be able to easily change the options on the fly.
Can you share the search pattern used? And which search tool you have installed I use ripgrep and haven't had too many problems, although the odd special character can confuse the search too. These are the options I know about, which should work for ripgrep and ag https://practical.li/spacemacs/spacemacs-basics/working-with-projects/searching-projects.html#searching-specific-files
it happens for all patterns. I'll install ripgrep, im using my labtop so thats likely the issue. thanks john
thanks jeff ill try that
I've updated https://practical.li/spacemacs/spacemacs-basics/working-with-projects/searching-projects.html with example of using the -A
option which will show the specified number of additional lines after each matching line.
There is also a screenshot of the error that occurs if using an option without a valid value (i.e. missing a glob pattern from -g). This is because Spacemacs sends the pattern to the search binary as soon as you type characters.
I didn't get anywhere with --
, although did discover that the pattern can be used before or after the options, which seems very handy