Giter VIP home page Giter VIP logo

Comments (8)

justbur avatar justbur commented on May 27, 2024

It's definitely possible to do this now. The replacements occur before the special key handling, so all you need is something like this for each one you want to do

(push '("TAB" . "") which-key-key-replacement-alist)

You can also set (setq which-key-special-keys nil) which will disable the special key stuff (but it's actually unnecessary to do this if you are already replacing them.

from emacs-which-key.

epitzer avatar epitzer commented on May 27, 2024

Cool, thank you. I will definitely do that.

Do you think that these settings could be useful defaults too, or be bundled in some way?

from emacs-which-key.

justbur avatar justbur commented on May 27, 2024

I think unicode is cool, but it's been problematic, because the character width can change based on the font (screwing up the way the layout works) and of course everyone uses different fonts.

The best way to do it that I can think of right now would be to describe a setup in the readme that people could drop into their init file. That way they could immediately see if the characters are supported by their font. If you wanted to come up with nice replacements like you did here, I'd be happy to add a section to the readme

from emacs-which-key.

epitzer avatar epitzer commented on May 27, 2024

You are right it should not be the default.

We could add U+2196 ↖ (north west arrow) to the above list as suggestion for replacing escape, which completes the list of default special keys and seems common enough to be supported by many fonts.

from emacs-which-key.

justbur avatar justbur commented on May 27, 2024

Nice, I'll add a section to the readme later. I think the special key stuff deserves it's own section. I can put the unicode alternative in there too. Thanks!

from emacs-which-key.

epitzer avatar epitzer commented on May 27, 2024

Cool!

I have to note however, that in my current setup, the symbols are no longer correctly aligned :-(
2015-07-24_162852

from emacs-which-key.

justbur avatar justbur commented on May 27, 2024

Yeah that's the width thing. The layout assumes a constant character width.
Your arrows are wide too probably but it doesn't cause problems since they
are in every column.
On Fri, Jul 24, 2015 at 10:32 AM epitzer [email protected] wrote:

Cool!

I have to note however, that in my current setup, the symbols are no
longer correctly aligned :-(
[image: 2015-07-24_162852]
https://cloud.githubusercontent.com/assets/1774452/8876684/7442de80-3221-11e5-9e7b-0d734b75d4a6.png


Reply to this email directly or view it on GitHub
#52 (comment)
.

from emacs-which-key.

justbur avatar justbur commented on May 27, 2024

Added to readme

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.