This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-02
Channels
- # admin-announcements (9)
- # alda (21)
- # announcements (1)
- # beginners (68)
- # boot (241)
- # braid-chat (18)
- # cider (32)
- # cljs-dev (4)
- # cljsrn (11)
- # clojure (60)
- # clojure-dusseldorf (1)
- # clojure-germany (1)
- # clojure-poland (212)
- # clojure-russia (64)
- # clojure-sg (10)
- # clojurescript (212)
- # core-async (1)
- # css (14)
- # datomic (1)
- # emacs (9)
- # funcool (2)
- # hoplon (18)
- # jobs (1)
- # ldnclj (1)
- # lein-figwheel (5)
- # leiningen (3)
- # om (190)
- # onyx (46)
- # parinfer (13)
- # proton (3)
- # re-frame (7)
- # reagent (10)
- # ring-swagger (2)
- # slack-help (3)
- # specter (1)
- # yada (31)
I've been testing out a simple little "hybrid" mode. It's actually kind of neat, things tend to auto-indent as in paren-mode when you add params or change a fn name, pasting behaves like paren mode paste, but if you are typing at the bottom of a form it behaves like indent-mode.
(if (re-matches #"\s*\S$" current-line)
(parinfer/indentMode current-text opts)
(let [paren (parinfer/parenMode current-text opts)]
(parinfer/indentMode (.-text paren) opts)))
Going to use it more this week to see where the problems lie, but over the last day it's been pretty good to work with.
That’s awesome @snoe
I’d like to try that out
can you indent/dedent selected lines with that?
looks like that would only work if there’s only one non-whitespace character on a line
but it’s interesting that it satisfies the use-case of insertion of a new line
I’m starting this demo site to be the canonical place to test Parinfer’s intended behavior
feedback welcome on the new previewCursorScope
option
@shaunlebron: this is wonderful
I'm talking with @escherize about integrating with this with CLJS fiddle: http://cljsfiddle.com/