cursive

Issues at: https://git.io/cursive-issues
salam 2020-09-25T03:57:01.020Z

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.

reefersleep 2020-09-25T06:56:07.020600Z

@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 []}

Jim Newton 2020-09-25T06:59:52.020800Z

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.

cmdrdats 2020-09-25T10:56:56.024800Z

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)

cmdrdats 2020-09-25T10:57:09.025300Z

I don't know if that's just a setting I accidentally changed, but I can't find it

cmdrdats 2020-09-25T10:58:16.025500Z

ah, found it

cmdrdats 2020-09-25T10:59:10.026400Z

Languages & Frameworks -> Clojure -> uncheck "Add forms sent from editor to REPL history" - in case anyone else wants to know xD

🎉 1
2020-09-25T11:11:17.028500Z

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.