Fork me on GitHub
#cider
<
2023-08-23
>
Joseph Graham17:08:53

how can I simply bring back previous command in repl? equivalent to what up and down arrow would do in a terminal?

jpmonettas17:08:43

M-p and M-n are bounded to cider-repl-previous-input and cider-repl-next-input

Evan Bernard18:08:56

and M-r if you want to search through your previous input 🙂

jpmonettas19:08:21

any idea how to disable those documentation overlays when you hover over symbols with the mouse? also more general, is there any way on emacs to track down this kinds of gestures? like what code is executing when hovering over a piece of text?

👀 2
jpmonettas19:08:42

talking about this popups

respatialized20:08:41

Would love to control this myself

vemv20:08:20

You could try following that instruction (`(setq cider-eldoc-display-for-symbol-at-point nil)`) to see if it gets disabled

jpmonettas20:08:35

is also kind of buggy, doesn't always display

vemv20:08:44

ok, please (setq nrepl-log-messages t) , cause the popup to show up again, visit the *nrepl-messages [...] buffer, see what request/response cycle is including all that info requests are marked by --> and have an id and op responses are marked by <-- and have an id (matching the request) and the response data then you'd have to grep in the cider package which defuns are calling that op

vemv20:08:25

(Slightly excessive work if it's the first time doing it, but it's a super useful technique)

jpmonettas20:08:51

looks like something that is requesting a info

vemv20:08:39

Yep, that's what I would have guessed :) Info is obtained via cider-sync-request:info , mainly

jpmonettas20:08:40

but not for every popup, just for the ones that shows a docstring

vemv20:08:01

there's defcustom cider-use-tooltips t , responsible for defun cider--help-echo which uses info hope that's it!

jpmonettas20:08:36

nice! cider-use-tooltips`` did the trick!

jpmonettas20:08:16

it would be nice to have a way of tracking those down. I can track most things down in emacs but no idea about those

vemv20:08:53

one way is as shown above, starting by the nrepl log and following that trace of ops and then code another is M-x describe-key . Sometimes it works with mouse stuff

vemv20:08:39

btw, we recently added Cider Storm to the docs (soon to be online) https://github.com/clojure-emacs/cider/pull/3425 Kudos for your work!

jpmonettas20:08:12

ok I found a way of tracking those, you add a breakpoint to emacs tooltip-show and can edebug them

👀 2
jpmonettas20:08:15

> btw, we recently added Cider Storm to the docs (soon to be online) nice!!

jpmonettas20:08:57

> ok I found a way of tracking those, you add a breakpoint to emacs tooltip-show and can edebug them meh, false alarm. Edebug activates and you can step, but running e (backtrace) doesn't provide any useful info

jpmonettas20:08:20

a timer ends up firing the tooltip-show

jpmonettas20:08:42

anyways, thanks @U45T93RA6!

🍻 2