Comments (8)
The docstring doesn't say whether which-key-unicode-correction
is a number of columns or pixels, I assume columns.
With a value of 0 I get the familiar cutoff. With a value of 10 there is no cutoff. There is a bit of space on the right, but not too much. With any value between 1 and 9 which-key displays an error in the minibuffer: "which-key can't show keys: Settings and/or frame size are too restrictive."
The behavior I experience also depends on the frame size. For some frame sizes I don't get any cutoff even when which-key-unicode-correction
is 0, but for others a value of 0 can give the error above.
from emacs-which-key.
Thanks for the detail. I'll look into this and fix the docstring. It should
function as a number of columns.
On Sun, Jul 12, 2015 at 12:12 PM Bar [email protected] wrote:
The docstring doesn't say whether which-key-unicode-correction is a
number of columns or pixels, I assume columns.
With a value of 0 I get the familiar cutoff. With a value of 10 there is
no cutoff. There is a bit of space on the right, but not too much. With any
value between 1 and 9 which-key displays an error in the minibuffer:
"which-key can't show keys: Settings and/or frame size are too restrictive."Value of 0:
[image: cutoff]
https://cloud.githubusercontent.com/assets/4334375/8638606/4d37348c-28c9-11e5-9f68-7f0d10e86c76.pngValue of 10:
[image: no-cutoff-10]
https://cloud.githubusercontent.com/assets/4334375/8638591/e7ae262a-28c8-11e5-850f-8af13fb33cf8.pngValue of 8:
[image: error-unicode-8]
https://cloud.githubusercontent.com/assets/4334375/8638587/d14c3e80-28c8-11e5-8610-d8c5f0181038.pngThe behavior I experience also depends on the frame size. For some frame
sizes I don't get any cutoff even when which-key-unicode-correction is 0,
but for others a value of 0 can give the error above.β
Reply to this email directly or view it on GitHub
#31 (comment)
.
from emacs-which-key.
I fixed the docstring. I'm having trouble explaining why it would not show with a value of 8. This looks like a bug to me.
from emacs-which-key.
I made a couple of tweaks but didn't find a fix necessarily. I still don't understand the weird results here.
I was playing with (font-at (point))
and found a font that gives me wide arrows, but it wasn't source code pro. One of the fonts was falling back to lucida sans (I think it was ubuntu mono). When I used that command on my arrow with source code pro, it reported back source code pro.
As far as I can tell here, the unicode correction is doing its job, but it's possible I can't replicate your setup/font/whatever.
from emacs-which-key.
I figured out the can't show keys problem and fixed it.
Can you try the 8 case again?
I have no idea if this website is correct, but here is a listing of the fonts that support the character I'm using #x2192
: http://www.fileformat.info/info/unicode/char/2192/fontsupport.htm
from emacs-which-key.
Seems to work π I'm not getting that error anymore, even though I tried. Also the cutoff seems to be gone for me - I have to change which-key-unicode-correction
and my frame size on purpose in order to reproduce the cutoff.
from emacs-which-key.
Sounds good. Thanks for checking. The keys can't be shown thing was
unrelated to the Unicode stuff. You just stumbled onto a bug.
On Tue, Jul 14, 2015 at 2:04 AM Bar [email protected] wrote:
Seems to work [image: π] I'm not getting that error anymore, even
though I tried. Also the cutoff seems to be gone for me - I have to change
which-key-unicode-correction and my frame size on purpose in order to
reproduce the cutoff.β
Reply to this email directly or view it on GitHub
#31 (comment)
.
from emacs-which-key.
I'll close for now
from emacs-which-key.
Related Issues (20)
- which-key crashes when trying to display term-raw-map HOT 1
- How to switch among different pages of keys conveniently in which-key mode? HOT 1
- which-key canβt show keys: There is not enough space based on your settings and frame size HOT 2
- Customize which-key-C-h-dispatch prompt HOT 1
- Make "<prefix> C-h" display which key and prompt for command at the same time HOT 3
- The texts for the same key in different keymaps are overridden each other HOT 2
- Question about `which-key-undo` HOT 1
- which-key is good enough to be built-into Emacs HOT 1
- Question about full description popups HOT 3
- Automatic expansion of unnamed prefixes
- misoperation
- Once which-key popup is triggered via which-key-show-early-on-C-h all delays are ignored afterwards HOT 1
- Which-key shows wrong labels from inactive keymaps HOT 1
- Side window is too narrow HOT 1
- Scrolling/ moving the screen
- How can I hide keys from the which-key popup? HOT 2
- Paging hint suggests C-h even when it's bound under given prefix and won't work HOT 1
- Which-key side-window cuts off some rows HOT 6
- Does paging work for `<escape>-` key sequences? HOT 2
- Error running timer βwhich-key--updateβ: (void-function take) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-which-key.