Fork me on GitHub
#cursive
<
2016-06-29
>
rauh07:06:07

Already works in Cursive:

(let [{:foo/keys [bar]} {:foo/bar 4}]
  bar)
I'm impressed.

cfleming08:06:51

@rauh: Yes, that’s worked for a while now. I’ll add the new map namespacing stuff in either the next drop or the following one.

ilukinov11:06:28

Hello, thanks for cursive!) QQ - how to re-read project.clj?

rauh11:06:35

@ilukinov: "Refresh leiningen Projects" (search all)

ilukinov11:06:06

Where do I need to search it?

rauh11:06:46

Help -> "Find action"

rauh11:06:49

@ilukinov: ^

ilukinov11:06:52

oh, correct answer is “You can assign this operation to a keystroke in 'Keymap' section under Preferences’. Thanks

rauh11:06:36

Yes, probably best to assign it. "Search everywhere" should already have keybinding, but I don't know what's the default. I edited mine to "Numpad slash"

ilukinov11:06:19

Expected to find it in context menu for project.clj

ilukinov12:06:33

And while I’m here - is there a way to jump to matched brace in one keystroke?

rauh12:06:28

@ilukinov: "Move bracket to matching brace" is the command. Again, search all or Help -> "Find action"

rauh12:06:44

Move caret to matching brace

kauko14:06:59

How do you see docstrings with cursive?

kauko14:06:18

Just realised I've been using cursive for a year now but I've never seen a docstring 😄

kauko14:06:39

F1 doesn't seem to work for third party libraries at least

imre14:06:45

ctrl-q for me

imre14:06:14

action is "quick documentation"

kauko14:06:09

It does work for my own functions

imre14:06:35

does it work for core stuff like map?

imre14:06:57

I'm sure it does

kauko14:06:08

not for me

imre14:06:34

doesn't work on (map)?

imre14:06:39

that's strange

imre14:06:10

could also try "quick definition"

imre14:06:10

I'm lost then

imre14:06:17

both of these work ok for me

kauko14:06:19

I'll ask my colleagues tomorrow if it works for them 😛

rauh16:06:29

With the new clojure namespace keyword they get printed differently which removes all syntax highlighting. Eg: {:a/b 1 :a/c 2}

rauh16:06:48

Temporary fix for people on clojure 1.9alpha8:

(defmethod print-method clojure.lang.IPersistentMap [m, ^Writer w]
  ((var clojure.core/print-meta) m w)
  ((var clojure.core/print-map) m (var clojure.core/pr-on) w))