calva
calva copied to clipboard
include a default keybinding for `apropos`
I was pairing with a colleague who uses Calva and we discovered that there doesn't seem to be a keybinding for apropos. I was hoping Calva could add a keybinding to make this more handy.
I'm a big fan of the "native" Clojure dev tools: dir, apropos, doc, source, pst, find-doc and have these keybindings at hand in inf-clojure. Highlighting these commands I think has two very beneficial consequences:
- first, of course, is that they are awesome in cider/calva/inf-clojure.
- Using tooling that is backed by these regular Clojure primitives means that they can be used from any Clojure repl: from a jar, dev environment, in production, whatever. Knowing that calva essentially calls
(apropos foo)means you can do the same when helping a beginner who is not familiar with their tooling, or when you are repl'd into production which lacks nrepl. I'm a big fan of making these utilities more prevalent in the conversation.
Thanks!
For anyone reading, wanting shortcuts for apropos et al, I'll note that it is pretty easy to create shortcuts for things like this using Custom REPL Commands.
I still agree that default shortcuts should be considered, for the reasons stated in the issue.