This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-21
Channels
- # beginners (5)
- # boot (15)
- # capetown (1)
- # chestnut (2)
- # cljs-dev (9)
- # cljsjs (3)
- # cljsrn (1)
- # clojure (190)
- # clojure-brasil (2)
- # clojure-greece (14)
- # clojure-italy (3)
- # clojure-poland (8)
- # clojure-romania (1)
- # clojure-russia (2)
- # clojure-serbia (3)
- # clojure-spec (38)
- # clojure-uk (98)
- # clojure-ukraine (2)
- # clojurescript (65)
- # clojurex (1)
- # core-async (16)
- # cursive (16)
- # datomic (3)
- # defnpodcast (7)
- # emacs (11)
- # funcool (2)
- # hoplon (16)
- # jobs (1)
- # leiningen (4)
- # lumo (9)
- # off-topic (2)
- # om (1)
- # other-languages (1)
- # protorepl (1)
- # re-frame (50)
- # reagent (16)
- # reitit (32)
- # remote-jobs (1)
- # rum (1)
- # shadow-cljs (73)
- # spacemacs (36)
- # specter (21)
- # sql (6)
- # unrepl (107)
- # untangled (4)
Is there a emacs-projectile-sed ? I want to do search replace of one regex with another regex, but I want to do it across all files in the project.
in spacemacs I often use helm-project-smart-do-search
(`SPC /`) with that you can enter edit with C-c C-e
and do the appropriate changes in special buffer
If you don't use spacemacs, you can do the search-then-edit with helm-ag-projectile
. That's what I use, but I'm sure could search for (helm|avy)-(grep|ag|rgrep)-projectile
and you should find an equivalent with your choice of tools.
qqq - I'd use projectile-ag, then use (wgrep-change-to-wgrep-mode) to make the results buffer editable, and then use replace-regexp or query-replace-regexp - might be a better way 🙂
== when I use search + replace on a single buffer in emacs: 1. when I type the FROM-REGEX, it starts highlighting parts of lines 2. when I type the / TO-REGEX, it shows the new value in red in place == when I use helm-ag , it interactively shows all l8ines from all files that match == when I use projectice-replace, I'm "flying blind" in that it asks me a FROm-REGEX, a TO-REGEX, but I don't see any interactive matching / narrowing
projectile-replace is like a 'literal sed over all project files', - is it possible to get an 'show me intermediate steps after every keystroke' ?
It will "interactively" ask for confirmation to replace each occurrence (or all occurrences in given file / all occurrences in all files).
I'd suggest to just use helm-*
if you want more interactivity (but then again I don't know the details about projectile-replace
- I think I've never used it)