This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-22
Channels
- # beginners (240)
- # boot (23)
- # bristol-clojurians (3)
- # cider (101)
- # cljs-dev (52)
- # cljsrn (17)
- # clojure (212)
- # clojure-dusseldorf (2)
- # clojure-greece (2)
- # clojure-italy (9)
- # clojure-russia (1)
- # clojure-spec (91)
- # clojure-uk (33)
- # clojurescript (164)
- # community-development (23)
- # core-async (24)
- # core-logic (9)
- # cursive (18)
- # datavis (1)
- # datomic (119)
- # emacs (13)
- # events (1)
- # figwheel (2)
- # fulcro (86)
- # graphql (1)
- # immutant (5)
- # jobs-discuss (6)
- # leiningen (19)
- # lumo (46)
- # nyc (7)
- # off-topic (23)
- # parinfer (15)
- # pedestal (3)
- # planck (32)
- # re-frame (48)
- # reagent (75)
- # ring-swagger (13)
- # rum (32)
- # shadow-cljs (402)
- # spacemacs (5)
- # specter (3)
- # tools-deps (11)
- # unrepl (20)
- # vim (135)
- # yada (3)
@shaunlebron except indent lines with tab, any case for multiple changes?
search/replace
I'm trying to introduce parinfer-rust in emacs. in current version, there's no change in result, so I should replace the whole in editor? that may cause some issues in emacs.
not sure what the vim plugin is doing, i don’t think it’s replacing whole text
might wanna follow what it’s doing
likewise, you can do parent-expression hack rather than replacing whole file
The Vim plugin finds the first and last changed lines and replaces that subset with one setline() call.
Actually, there's first a shortcut to test if it gets the text back unchanged, in which case it does nothing.
I might add support for nvim_buf_set_lines there :thinking_face: something about performance.
OK, so there's a test harness now: https://github.com/eraserhd/parinfer-rust/blob/master/tests/test_parinfer.vim