these sound like pretty good milestones that you can quickly put into a simple roadmap.MD and publish somewhere on the Cursive’s GitHub repository or its official website. i’m sure a lot of people (including myself) are interested in this kind of stuff.
@cfleming My macro is like this:
(defmacro ->until [predicate-fn x & forms]
(let [result (eval x)]
(if (predicate-fn result)
result
(if forms
(let [form (first forms)
threaded (if (seq? form)
(list `-> result form)
(list form result))]
`(->until ~predicate-fn ~threaded ~@(next forms)))
result))))
And can be used like this:
(->until :errors {}
((fn [x]
(prn "hej!")
(merge x {:dog "fido"})))
(assoc :errors [])
(assoc :wow :nej))
"hej!"
=> {:dog "fido", :errors []}
So anyone using my library, but not my project, will get incorrect indentation for the macro calls? Is there a plan/desire to fix this? Or has it been discussed already and rejected.
hi! my cursive started printing the form in the REPL when I use "Send top form to REPL" - which kinda wrecks the history (particularly since I push defn
with shortcut, then hit 'up' to replay my last form quite often)
I don't know if that's just a setting I accidentally changed, but I can't find it
ah, found it
Languages & Frameworks -> Clojure -> uncheck "Add forms sent from editor to REPL history" - in case anyone else wants to know xD
There's also Cmd-Up (or Ctrl-Up on PC) to scroll an entire form at a time in the REPL history. For example, if you have "Add to REPL history" checked, and you send a 5-line form to the REPL, you can use Cmd-Up to get to the previous REPL command instead of having to hit Up 5 times.