This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-22
Channels
- # beginners (240)
- # boot (23)
- # bristol-clojurians (3)
- # cider (101)
- # cljs-dev (52)
- # cljsrn (17)
- # clojure (212)
- # clojure-dusseldorf (2)
- # clojure-greece (2)
- # clojure-italy (9)
- # clojure-russia (1)
- # clojure-spec (91)
- # clojure-uk (33)
- # clojurescript (164)
- # community-development (23)
- # core-async (24)
- # core-logic (9)
- # cursive (18)
- # datavis (1)
- # datomic (119)
- # emacs (13)
- # events (1)
- # figwheel (2)
- # fulcro (86)
- # graphql (1)
- # immutant (5)
- # jobs-discuss (6)
- # leiningen (19)
- # lumo (46)
- # nyc (7)
- # off-topic (23)
- # parinfer (15)
- # pedestal (3)
- # planck (32)
- # re-frame (48)
- # reagent (75)
- # ring-swagger (13)
- # rum (32)
- # shadow-cljs (402)
- # spacemacs (5)
- # specter (3)
- # tools-deps (11)
- # unrepl (20)
- # vim (135)
- # yada (3)
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.
@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)
-------------------------
debux.core/fn-traced
(fn name? [params*] exprs*)
(fn name? ([params*] exprs*) +)
Macro
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 https://www.sublimetext.com/ the first demo on the main page is this feature
@lee.justin.m See here: https://www.vojtechruzicka.com/intellij-idea-tips-tricks-multiple-cursors/, the last one looks like the closest to what you want, but isn’t quite the same.