Fork me on GitHub

Is there anybody here, familiar w/ the idea codebase, willing to give me a few pointers? I’ve got a javafx component (it could just as easily be swing) I’d like to use for my main source editor pane, and trying to get some idea of how difficult that would be to accomplish.


Hey, I don't know if this is a known issue, but merging files using git might confuse parinfer. Like, when there's a conflict, git inserts lines like >>>>>, HEAD etc, that might cause parinfer to modify some parenthesis. I'm disabling parinfer before using git merge for now. I don't know if there's a better approach.


@andre.peric Interesting, I hadn’t considered that case. I wonder if IntelliJ will tell me that those files have conflicts so I can disable parinfer on them until they’re resolved.

👍 4

@jebberjeb I might be able to help, if not the IntelliJ plugin dev forums are pretty helpful these days.


hey cursive fans. i know that IJ has multiple cursors by using the mouse, but is there some way to get the Cmd-D type functionality from submlime/atom/vscode in IJ/cursive?


I bound Cmd-D to “find word at caret” but that’s not the same functionality. this is the thing i miss the most by far from atom


Is there a way to 'trick' Cursive into using the :forms on a macro, rather than its actual arguments for param completion?


The same way that clojure.core does for things like fn and defn


(defmacro fn-traced
  "Defines a traced fn"
  {:forms '[(fn name? [params*] exprs*) (fn name? ([params*] exprs*) +)]}
  [& definition]
  `(if (is-trace-enabled?)
     (fn-traced* ~@definition)
     (fn ~@definition)))


I've done this, but Cursive isn't fooled


(clojure.repl/doc fn-traced)
  (fn name? [params*] exprs*)
  (fn name? ([params*] exprs*) +)
  Defines a traced fn


ah, I needed to use :arglists instead of :forms


@lee.justin.m What does Cmd-D do?


@cfleming oh worry that would have been helpful. the first time you press it, it highlights the word under the cursor. the next press finds the next occurrence of that word and creates a new cursor there. so if you want to change 5 instances of a variable, you press cmd-d 5 times and then you have 5 cursors.


it’s incredibly useful because sometimes you don’t even want to change the variable but its a way to get the cursors just where you want them


on the first demo on the main page is this feature


@lee.justin.m See here:, the last one looks like the closest to what you want, but isn’t quite the same.


Looks like it automatically selects all occurrences, not the next one on each press.