Fork me on GitHub
#cider
<
2016-05-12
>
arrdem00:05:04

Is there a way I can make the CIDER "eval form" result overlay persist rather than disappearing when I do anything? A common pattern in my code is that I'll have macros generating several defs. I'd like to be able to eval every form in the file and have the overlay display the result of each macro which is the vector of vars created by that macro.

malabarba04:05:30

@arrdem yes. You can configure the duration of the overlay. Set it to nil and it stays around indefinitely.

malabarba04:05:53

I always forget the name of the variable

malabarba04:05:12

But you can find it if you browse around the customise menu

arrdem04:05:58

@malabarba: nice, I'll check it out.

malabarba14:05:50

@arrdem could you file a quick issue about the screenshots? Just so we don't forget

brian_mingus16:05:28

is there a way to have multiple repls open and to toggle between them as the target for code evaluation?

jcsims16:05:06

@brian_mingus: it’s been a couple months since I’ve used it, but cider-rotate-default-connection will rotate through (and display) the active connection

jcsims16:05:33

bound to C-c M-r by default, I think

jcsims16:05:07

@bozhidar and @malabarba (among others I’m sure): thanks guys for all your hard work on Cider. It’s a treat to use

brian_mingus16:05:30

hmm, C-c M-r is undefined for me

brian_mingus16:05:40

i have CIDER 0.12.0snapshot (package: 20160404.239), nREPL 0.2.12

jcsims16:05:19

I’m on 0.12.0 stable - maybe try a C-h f on the function name?

jcsims16:05:36

it might only be available when you have an active connection already

jcsims16:05:43

or after Cider’s loaded

brian_mingus16:05:17

it works only in a clj buffer

brian_mingus16:05:00

another question - is there a way to get C-c C-e to pretty-print the output ?

jcsims16:05:28

hmm I don’t know the answer to that one 🙂

jcsims16:05:27

for more info on managing repl connections, though: https://cider.readthedocs.io/en/latest/managing_connections/

brian_mingus17:05:08

@jonas: looking for cider-pprint-eval-last-sexp-to-repl

brian_mingus17:05:14

filed a ticket requesting it

triss18:05:19

Hope this is the right place to ask - Does anyone know if clj-refactor can rename a whole project? If so can it do so via CIDER in emacs?

arrdem18:05:13

Rename a whole project? What do you mean by that?

arrdem18:05:22

As in change all the namespaces to share some other common prefix?

malabarba19:05:38

Clj-refactor can rename directories

malabarba19:05:06

Which recursively renames all the namespaces inside that directory

malabarba19:05:17

You should be able to use it to rename src/old_project/ to src/nee_project/

malabarba19:05:45

Not sure if that's what you're looking for @triss

triss19:05:42

Ah thanks @malabarba I'll see how far the rename directory stuff gets me.

peeja20:05:00

Is it possible to get the info op (or an equivalent) to work in ClojureScript?

peeja20:05:15

I'm trying to get jump-to-symbol in my editor

brian_mingus21:05:38

@peeja not sure what you mean. Try M-.

peeja21:05:52

@brian_mingus: Oh, that does work! I had to turn lispy-mode off.

peeja21:05:37

I wonder why Lispy doesn't use cider-find-var

brian_mingus22:05:44

@peeja lispy-mode looks promising

peeja22:05:14

It does its own symbol resolution, which appears to fail in clojurescript