This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-09
Channels
- # beginners (205)
- # boot (6)
- # cider (22)
- # cljs-dev (41)
- # cljsrn (4)
- # clojure (97)
- # clojure-dev (61)
- # clojure-greece (40)
- # clojure-italy (8)
- # clojure-russia (16)
- # clojure-spec (18)
- # clojure-uk (34)
- # clojurescript (14)
- # community-development (1)
- # cursive (45)
- # datomic (39)
- # fulcro (66)
- # jobs (2)
- # lein-figwheel (1)
- # lumo (9)
- # off-topic (8)
- # parinfer (98)
- # portkey (8)
- # re-frame (81)
- # reagent (54)
- # remote-jobs (17)
- # ring (2)
- # shadow-cljs (217)
- # spacemacs (32)
- # sql (24)
- # test-check (6)
- # unrepl (73)
- # yada (12)
Apart from the one problem project, parinfer is really working great now. I really liked the smart mode when using atom, excited that we have it in cursive now.
Is there any way to to select a namespace-qualified symbol/keyword with a single command? I can select all of my-ns/foo
with two "expand selections".
@dave.dixon Great! I’ll try to repro with that project when I get a chance.
Just wanted to hop in here and say parinfer smart mode works great, I’ve found zero downsides, all upside, @cfleming delivered
@swlkr Great news! @shaunlebron deserves most of the credit 🙂
It would be cool to just select (or expand) based on Clojure syntax, a single key-combo that operated at the level of clojure literals, symbols, and collections. I was able to do part of this for collections, and it's really useful, especially in conjunction with parinfer.
With the custom macros I have for collections, it's very quick and easy to do things like cut an entire list and paste it in place of another one. I find myself wanting to do the same with other clojure syntactic elements, e.g. cut the current ns-qualified keyword, and paste it over another.
The problem is that it’s also often useful to e.g. just change the name part of a qualified keyword.
It's just a different use-case. I agree that you still want to do that. I can almost do what I want with macros using "Move Backward" and "Expand Selection". Works on strings and qualified keywords. For whatever reason, though, "Expand Selection" at the start of a ns-qualified symbol only selects the namespace.
So something that people have asked for from time to time is a way to select just sexps. Perhaps that could be generalised somewhat to “Clojure forms”, and could have a slightly different keybinding (e.g. alt-shift-up on OSX, expand selection is currently alt-up)
If you had a way to select based on the same logic used for Move Backward/Forward, then I think I could make a macro similar to what I have for s-expressions to work on symbols and literals.
That would be cool.
You can select s-expressions via keyboard macros.
Exactly
@taylor and I are having problems running the new parinfer on cljs files in cursive
@dave.dixon’s repo is all CLJC and CLJS.
steps to reproduce: 1. new project > clojure 2. parinfer should work in core.clj 3. create new cljs namespace 4. paste in https://github.com/oakmac/atom-parinfer/blob/master/src-cljs/atom_parinfer/core.cljs 5. parinfer seems to not work in the cljs file
haha, awesome
Ugh, yeah, IntelliJ has this really confusing thing around file types, I’m using the wrong test.
I will say when I was first learning Clojure, Parinfer felt like add’l “cognitive load” so I turned it off, but now I hate not having it on!
Smart mode is much more intuitive I think, I’m hopeful that it shouldn’t add any cognitive load now!
one of my only peeves with prev iteration was that pasted code was often wrongly-indented, seems totally fixed now
I’ve pushed 1.7.0-snapshot2 fixing that bug /cc @shaunlebron
Me too. Thanks for the fast turnaround!
works here!
Will try it out soon, kinda had the same like taylor I guess, but now I’m copy/pasting quit some time, which could be faster and less error-prone.
@cfleming, Hi!
Tried new Parinfer in Cursive, looks really great!
Is there an option to turn forceRebalance
on (like in http://shaunlebron.github.io/parinfer/demo)?
Because now I can press enter before closing brackets and they will be moved to the next line. And then I can delete closing brackets using delete
button, after that parinfer stops auto-balancing. Also, when closing brackets are in the new line I can't move my cursor to the left using shift-tab.
I see “built from 1.7.0-snapshot” in the version notes, but I don’t seem to have any parinfer v3 features (e.g., changing subsequent line indent when I change the length of a preceding form).
can someone tell me what version of JDK 1.8 people are using that works with Cursive
I seem to be using 1.8.0_144-b01. No problems using it with Cursive.
Officially 1.8.0_144 that is