This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-02
Channels
- # bangalore-clj (4)
- # beginners (30)
- # boot (11)
- # cljsrn (11)
- # clojure (18)
- # clojure-conj (2)
- # clojure-italy (1)
- # clojure-uk (6)
- # clojurescript (14)
- # clojurewerkz (1)
- # core-async (3)
- # fulcro (14)
- # hoplon (12)
- # lumo (7)
- # off-topic (24)
- # onyx (2)
- # portkey (1)
- # protorepl (1)
- # re-frame (8)
- # spacemacs (14)
- # specter (95)
- # unrepl (14)
Is it possible to run ex commands via a kbd-macro
? I have some quoted strings and in the quoted string I have to replace all / with _, all + with - and all = with nothing. I was hoping to do a kbd macro that would visual select inside the quotation and then run the 3 ex commands to substitute but it doesn’t seem to be working.
note: the rest of the string is essentially random so no simple search and replace will work
@kasuko - This sounds like a frustration I've hit before. It seems that macros in evil-mode are not nearly as robust as they are in Vim. I don't know the answer to your question, but I'd guess the answer is no. 😞
@jeff.terrell > It seems that macros in evil-mode are not nearly as robust as they are in Vim I don't think that's true. Macros get recorded as keyboard macros in emacs-lisp, you can make some incredible shit with them
@kasuko I was able to record a macro that finds next occurrence of "
, then selects everything in it - vi"
, then applies string replace using ex command - e.g. :'<,'>s/foo/bar/g
@ag would you be able to send me that macro? I wasn’t able to do it either by using :
or even M-x evil-ex