-
Notifications
You must be signed in to change notification settings - Fork 87
Which-key side-window cuts off some rows #369
Comments
Can you reproduce this by starting emacs without your config ( (require 'which-key)
(which-key-setup-side-window-right)
(which-key-mode) ? |
My apologies for the slow response. I tried loading I then enabled my usual Emacs theme (from the package I was able to reproduce the issue when I made the default frame face larger (to be compatible with my display and eye comfort):
So it seems to me that one solution for this would be to make the default |
First off, the intention is for the window to scale appropriately if the font is larger. I just checked that mine does even for larger font sizes than the one you're using. From the pictures above, it seems like the character widths are not being handled properly. Can you try the following? First, (setq which-key--debug-buffer-name "wk-debug") That will dump out some of the calculations to the buffer "wk-debug". I'd like to see what it spits out for one of the problematic cases, preferably like you have here starting from |
OK, I tried the following: after loading
(Note: this time I didn't load a theme, I just changed the default frame face.) Opening a new frame (so that the larger font is applied), and hitting
Below is the associated screenshot of the first page for the I also tried
I hadn't implemented any special paging for |
Sorry, I meant for you to update which-key first because I added some more information to the debug output. Do you mind doing what you did again after updating which-key? |
I tried it again after updating – it's still version 3.6.0 but it has the new =which-key--debug-message= changes. The problem remains, here is the output to the
|
See the images below; the Which-key information for the
C-x
prefix doesn't show the full list of commands afterC-x i
, and paging viaC-h n
just jumps toC-x p
rather than showing the info related toC-x j
,C-x k
etc.I've tried:
which-key-side-window-location
tobottom
rather thanright
, and also using theminibuffer
which-key-side-window-max-width=/
-height=,The only change that makes a difference is changing
which-key-popup-type
to'frame
, but that's not the most ideal option for my workflow.Also, doing
(setq which-key-allow-imprecise-window-fit nil)
makes a difference when the side-window is at the bottom, but not on the right hand side of the frame.Is there a consistent fix for this? Should I try writing my own
custom-show-popup-function
?https://github.com/justbur/emacs-which-key/assets/1893566/22f6aa35-b8b0-4a8c-868f-6208eb0a06ea
https://github.com/justbur/emacs-which-key/assets/1893566/e800771b-7bd3-4a35-b81d-3fc951ce274e
The text was updated successfully, but these errors were encountered: