Giter VIP home page Giter VIP logo

Comments (8)

bmag avatar bmag commented on May 27, 2024

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:
cutoff

Value of 10:
no-cutoff-10

Value of 8:
error-unicode-8

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.

justbur avatar justbur commented on May 27, 2024

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.png

Value of 10:
[image: no-cutoff-10]
https://cloud.githubusercontent.com/assets/4334375/8638591/e7ae262a-28c8-11e5-850f-8af13fb33cf8.png

Value of 8:
[image: error-unicode-8]
https://cloud.githubusercontent.com/assets/4334375/8638587/d14c3e80-28c8-11e5-8610-d8c5f0181038.png

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.

β€”
Reply to this email directly or view it on GitHub
#31 (comment)
.

from emacs-which-key.

justbur avatar justbur commented on May 27, 2024

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.

justbur avatar justbur commented on May 27, 2024

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.

justbur avatar justbur commented on May 27, 2024

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.

bmag avatar bmag commented on May 27, 2024

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.

justbur avatar justbur commented on May 27, 2024

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.

justbur avatar justbur commented on May 27, 2024

I'll close for now

from emacs-which-key.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.