casouri / eldoc-box

childframe doc for eglot and anything that uses eldoc
359 stars 26 forks source link

KBD Motion Within Eldoc-Box Frames? #114

Open 0x28282B opened 2 hours ago

0x28282B commented 2 hours ago

How could one achieve something similar to the code block provided below?

To be honest, eldoc-box is wonderful but lacks scrolling behavior through bindings. It has been rather bothersome to have to resolve to using my touchpad for scrolling the content provided within the frame of the eldoc-box.

(:map eldoc-box-hover-mode-map
      ("M-j" . eldoc-box-scroll-up)
      ("M-k" . eldoc-box-scroll-down))))
casouri commented 2 hours ago

Added

0x28282B commented 2 hours ago

You're awesome! Thank you so much for the quick addition! I'm going to test out the feature tomorrow as soon as I get the chance to!

Have an awesome day!

0x28282B commented 1 hour ago

Couldn't let it be and had to test. Feature works as intended, and it's awesome!

What do you think about setting the default value to 3 (something else works, too) instead of having it completely empty?

casouri commented 1 hour ago

Hmm, I don't know, that might be too large for a smaller childframe. Maybe you can define a wrapper command yourself?