Giter Club home page Giter Club logo

Comments (3)

yanghaoxie avatar yanghaoxie commented on July 19, 2024 1

I just read some code of which-key, it seems like that which-key determines the height and width according to the information it displays. This will align the information properly.

If we simply change the height and width of which-key-posframe, the display will be destroyed, therefore which-key-posframe just inherit the height and width from which-key.

I do not know whether it needs a lot of work to do this right. I will investigate this later.

from which-key-posframe.

sandinmyjoints avatar sandinmyjoints commented on July 19, 2024

In case its helpful, I got changes to height and width to take effect by using posframe's default arghandler:

(setq posframe-arghandler #'wjb/posframe-arghandler)
(defun wjb/posframe-arghandler (buffer-or-name arg-name value)
  (let ((info '(:internal-border-width 2 :width 90 :height 12)))
    (or (plist-get info arg-name) value)))

It doesn't actually look good since the width and height are not tailored to the which-key content, but I'm sharing in case this is helpful in getting which-key-posframe to inherit height and width from which-key.

from which-key-posframe.

yanghaoxie avatar yanghaoxie commented on July 19, 2024

@sandinmyjoints Thanks!
However, it is very simple to make it is feasible to customize which-key-posframe height and width, what I have not figured out is how to align the display if we do not inherit height and width from which-key.

from which-key-posframe.

Related Issues (14)

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.