This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-05
Channels
- # aatree (2)
- # admin-announcements (15)
- # announcements (2)
- # aws (8)
- # beginners (160)
- # boot (290)
- # braid-chat (28)
- # cider (8)
- # clara (1)
- # cljsrn (3)
- # clojure (154)
- # clojure-czech (7)
- # clojure-russia (162)
- # clojurebridge (2)
- # clojurescript (128)
- # cursive (29)
- # datomic (30)
- # emacs (7)
- # events (1)
- # hoplon (5)
- # jobs (1)
- # ldnclj (7)
- # leiningen (3)
- # off-topic (11)
- # om (82)
- # onyx (68)
- # overtone (1)
- # parinfer (57)
- # portland-or (1)
- # proton (18)
- # re-frame (8)
- # reagent (32)
- # ring-swagger (3)
- # yada (5)
Using Parinfer to calculate indentation when entering ClojureScript forms in Planck: https://youtu.be/q4LmSC6xdsI
@chrisoakman has shamed me into implementing it in Cursive now by removing all my excuses
Hah! It will be interesting to see how it works in Cursive. :) My use cases have been minimal in comparison to what must be going on in Cursive.
Yeah, it’s actually trickier than I thought, quite apart from the UI aspects of not making it terribly confusing.
very nice @mfikes
I’m not seeing any inferred parens, so I’m guessing you did some magic here
@shaunlebron: It is only using it for calculating the indentation. (Really just a minor enhancement to Planck to automatically type the spaces at the beginning of each line for you.) I think if Planck gets multi-line editing, then full-on Parinfer is on the top of my list: https://github.com/mfikes/planck/issues/120
@mfikes: cool, I like the balancing with indent-mode and then paren-mode for retrieving indentation length https://github.com/mfikes/planck/commit/7303cf8e435335e5bb054b861271e7916b886baa#diff-13fa1297261809d0414872aca47177beR30
clever and useful though!
@cfleming what kind of problems are you having?
@shaunlebron: It’s internal IntelliJ stuff. I have to use a document listener to get the changes to the documents, but I can’t update the document inside that listener.
So I have to some up with some way to update the document later after some event that provokes a change.
There’s also the issue that Cursive/IntelliJ will update documents that are not open in an editor with refactorings or VCS operations.
At the moment I’m working on some of the UI stuff to make this more obvious, then I’m going to try actually integrating it.
I see
depending on intellij, you may have a problem making parinfer’s edits bypass the undo stack
if the parinfer edit gets added to the undo stack, undo will remove parinfer’s edit, but since parinfer runs after every edit, it will auto-redo the edit
if that makes sense
No, that won’t be a problem - I can update the doc without affecting the undo stack.
it was only a problem with Sublime Text, other editors were fine with it and didn’t require any extra work
okay cool
alright, well good luck
ha, everyone here is really smart
it’s a whole nother world here from what I’m used to
you too colin
Are you allowed to talk about what you’ll be doing, apart from infiltrating them with CLJS?
yeah, i got a little overwhelmed today, but great people and far-reaching technology
i’m working on the checkout form
they make all the new recruits get up during allhands to introduce themselves to the company
i made it clear that my secret mission was to bring clojure to stripe
so it’s not really a secret anymore
seriously though, they’re open to new technology, and just want to add stuff incrementally in a way that doesn’t move us backwards
so we’ll see
not going in guns blazing
yeah cool
yeah, catch up later, good night