Fork me on GitHub
#calva
<
2019-10-26
>
Lars Nilsson16:10:57

Does anyone have a quick, easy, and appropriate method for requiring doc and find-doc in particular from clojure.repl upon Calva startup?

Lars Nilsson16:10:59

I need to do (require '[clojure.repl :refer [doc find-doc]) more than I'd like when the Calva repl appears.

pez16:10:03

@chamaeleon there is a quicker way to do that. ctrl+alt+c ctrl+u, which is the default binding for the command to require the repl utils.

pez16:10:22

I think you will still need to do it as often though.

Lars Nilsson16:10:16

I see it as a command that has a key binding now. I didn't know it existed.

pez16:10:24

We should consider doing that automatically for all namespaces that get loaded… Not sure if that would be safe, but I think it should.

Lars Nilsson16:10:50

Thanks a bunch. I appreciate Calva very much.

pez16:10:53

> I didn’t know it existed. There are a lot of secrets in Calva, unfortunately.

pez16:10:40

You’re welcome! If you think those utilities should be loaded automatically, please file an issue about it.

Lars Nilsson16:10:26

My personal opinion is yes, as I've been used to it from lein repl and nrepl connectivity in emacs. I will have look at creating an issue (if there isn't something similar already). But in either case, knowing there's a command/keybinding will alleviate the "pain" a lot. 🙂

bringe16:10:50

I agree with that as well ^

👍 4
pez17:10:20

Issue, or it didn’t happen! 😀

Lars Nilsson17:10:02

Filed issue #433. 🙂

pez19:10:36

Awesome.

dharrigan20:10:26

Anyone using VSC with the Vim Plugin (on Linux)?

dharrigan20:10:04

and has figured out a way to have caps lock bound to escape?

pez20:10:01

Calva should pop up the suggestion to read that doc page when it sees you are using the vim extension. Didn't it?