Giter VIP home page Giter VIP logo

Comments (6)

justbur avatar justbur commented on May 27, 2024

If echo-keystrokes is too high it will clobber anything that which-key
shows in the echo area so yes and actually which-key shows all of the
information that echo-keystrokes does plus more.

It should only do it when the echo area is actually used by which-key.

Are you having an issue with it? Spacemacs unfortunately resets
echo-keystrokes which is an issue I haven't solved yet. I mentioned it to
@syl20bnr at one point with no response.
On Wed, Aug 26, 2015 at 4:53 PM Christopher McCloud <
[email protected]> wrote:

I'm not 100% about this yet, but it looks as though which-key will
sometimes set the value of echo-keystrokes to nil on load.

Is this intentional?

β€”
Reply to this email directly or view it on GitHub
#59.

from emacs-which-key.

cmccloud avatar cmccloud commented on May 27, 2024

Ah, some of us noticed that sometime recently echo-keystrokes weren't showing up. Setting echo-keystrokes to a postive value in config fixed it for me, and I was poking around to see what parts of spacemacs might have touched it.

from emacs-which-key.

syl20bnr avatar syl20bnr commented on May 27, 2024

I have no idea :-)

from emacs-which-key.

justbur avatar justbur commented on May 27, 2024

I don't think the current behavior is optimal, and I'm open to other suggestions. There are two problematic cases:

  1. If which-key-show-prefix is 'echo then the prefix as well as other information (page numbers, key hints, and prefix titles) is displayed in the echo area. I can't "lock" the echo area so the next message there (like the one triggered by echo-keystrokes) wipes it out.
  2. If which-key-popup-type is 'minibuffer then the which-key popup uses the same space and the same problem arises.

I had it at one point where I was taking the existing value of echo-keystrokes and finding the midpoint between 0 and which-key-idle-delay, which was fine, but then the echo area kind of flashes as the keystrokes are echoed, followed shortly by the which-key echos. I gave up and made it zero by default, but you can change it when which-key is active using which-key-echo-keystrokes.

@syl20bnr The problem in spacemacs is that spacemacs sets echo-keystrokes to I think 0.6 after which-key is initialized, so if which-key-idle-delay is less than 0.6 (default is 1), echo-keystrokes is going to overwrite anything which-key puts in the echo area.

Note: It's possible to configure which-key to not use the echo area at all, but I like making use of the extra line.

from emacs-which-key.

justbur avatar justbur commented on May 27, 2024

@syl20bnr I misspoke. I am overriding echo-keystrokes in spacemacs. The thing I said about spacemacs setting it back to 0.6 (I checked it was 0.02) was something that was happening earlier, but no longer happens. If you want to keep it at 0.02 that shouldn't interfere with which-key. I can just set which-key-echo-keystrokes to 0.02 and that setting will be preserved.

from emacs-which-key.

justbur avatar justbur commented on May 27, 2024

@cmccloud I fixed the echo-keystrokes backup issue. Please open a new issue if you notice any problems with it.

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.