reddit / emacs

emacs company popup: how to scroll it by mouse?

CalligrapherTime6039 · 2022-04-17 06:51
​ https://preview.redd.it/am91yvgnd1u81.jpg?width=675&format=pjpg&auto=webp&s=0a12f6a95ae582079494469c00f5d42cac01aa56
sircelj · 2022-04-17 10:18
What's a mouse?
jacmoe · 2022-04-17 20:02
M-n / M-p navigates the entries. Using a mouse is going to be extremely inefficient.
AngryFilament · 2022-04-18 00:20
https://github.com/company-mode/company-mode/issues/742 I did some digging, and it looks like this scrolling support been a wishlist item since 2018 with no resolution, I imagine there's no official way to make scrolling happen any time soon. The silver lining is if you're willing and able, you can dig into company-mode and submit a patch to get it working the way you like.
divinedominion · 2022-04-18 11:01
Couldn't one add mouse scroll input to the company popup keymap to execute the same command as M-n/M-p?
jacmoe · 2022-04-18 11:29
You can do anything in Emacs :)
CalligrapherTime6039 · 2022-04-18 14:16
A great info! Thanx
AngryFilament · 2022-04-18 16:43
Glad I could help!
divinedominion · 2022-04-19 09:13
I dabbled a bit with this, and got the scroll wheel working _somewhat_: https://github.com/company-mode/company-mode/issues/742#issuecomment-1102358473 It scrolls by selecting next/previous elements.
AngryFilament · 2022-04-19 17:44
The hero we didn't deserve
[deleted] · 2022-04-23 17:16
[deleted]
CalligrapherTime6039 · 2022-04-23 17:17
great!!! thanks a lot!!!!!8D