This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-18
Channels
- # aws (3)
- # beginners (18)
- # boot (3)
- # cider (47)
- # clara (54)
- # cljs-dev (62)
- # clojure (104)
- # clojure-berlin (1)
- # clojure-denver (1)
- # clojure-italy (1)
- # clojure-nl (22)
- # clojure-russia (30)
- # clojure-spec (28)
- # clojure-uk (95)
- # clojurescript (31)
- # cloverage (1)
- # cursive (1)
- # datomic (17)
- # duct (4)
- # emacs (27)
- # fulcro (36)
- # graphql (1)
- # hoplon (1)
- # jobs-discuss (1)
- # lein-figwheel (1)
- # lumo (2)
- # off-topic (44)
- # om-next (5)
- # onyx (29)
- # precept (1)
- # re-frame (8)
- # reagent (7)
- # ring (1)
- # ring-swagger (2)
- # schema (4)
- # shadow-cljs (185)
- # spacemacs (21)
- # specter (59)
- # tools-deps (7)
- # vim (15)
- # yada (1)
How do you do project wide search-and-replace? I found different ways, and all are not working (well): I did SPC / with my search term, get the results in helm buffer. Then c-c c-e is supposed to open the result in an editable buffer, but i get "c-c c-e is undefined". I also tried c-z in the Helm buffer which gives me a menu with F-key assignments, and F4 is supposed to be named "Edit in buffer", but it is not, F4 does an open file in other window. F3 is named „Copy to buffer“, but that is read-only and the wrong thing, i think. Then there is SPC p % which works, but when i am asked to confirm the first replace and i want to replace all occurences with ´!´, i get some cryptic "out of range" error. The only thing that worked was confirming every single occurance.
Now my colleagues with other editors are laughing at me and i am deeply depressed :white_frowning_face:
Nope. Newest dev branch, all packages updated: SPC / <search term>
gives me results, then c-c c-e
gives me "c-c c-e is undefined"
Regarding SPC p %
i did it wrong: Y
does the global replacement, not !
. That was my fault. So SPC p %
works fine.
@spfeiffer tried projectile replace?
SPC p P
by default for me projectile-replace
is the command
I'm sorry, I meant that. the typo escaped me
glad it works. I also use SPC f S
to save all the changes. I tend to use magit to review them if it's available as well
it's a bit basic, and you'd have to :wa
after but I find it the safest to do a project wide search and replace