Fork me on GitHub
#cursive
<
2020-11-05
>
onetom07:11:56

I might have asked this already, but is there a way to customize the REPL prompt for nREPL connections?

cfleming10:11:10

In Cursive, there really is no REPL prompt - which is the part you’d like to customise?

onetom15:11:20

there is a => in the output, but that's not really a prompt indeed. what i would like is the same kind of thing as clojure.main/repl-prompt, so i can constantly reflect some state of my program. more specifically i would use it to switch between different deployment environments (using different aws profiles, ssh keys, domain names) and evaluate expressions, which would implicitly depend on the current environment.

onetom15:11:44

so before i evaluate something, i would see which environment will it going to be evaluated.

onetom15:11:17

im practically trying to use cursive as a unix shell replacement, so it feels like i would need something like a shell prompt.

pez13:11:28

Is there a way to fold maps?

pez13:11:27

Context: We are trying with inlining tests into the function attribute maps. It often gets that tests take up much more space than the function itself and the Cursive users in the project do not seem to be able to fold the attribute map.

imre13:11:55

A question on that: how do you keep test-only requires out of the prod namespace this way?

pez13:11:43

We don’t. 😃

imre13:11:31

Ah, okay then 🙂

manutter5113:11:53

You can fold any selection with Command-Period on the Mac, I assume PC is similar.

❤️ 3