Comments (6)
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.
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.
I have no idea :-)
from emacs-which-key.
I don't think the current behavior is optimal, and I'm open to other suggestions. There are two problematic cases:
- 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 byecho-keystrokes
) wipes it out. - 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.
@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.
@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)
- Please add a screenshot with command docstrings shown to the README HOT 2
- Question about which-key-persistent-popup HOT 2
- which-key-show-transient-maps clobbers itself HOT 3
- yasnippet bindings have no label HOT 1
- custom string replacement: ambiguous example in README HOT 6
- which-key-mode appears in which-key-faces customize group HOT 1
- Composition not being used in which-key buffer HOT 2
- BUG: conflict between which-key-window and avy-goto-char-2. HOT 2
- which-key menu misalignment with ellipsis char HOT 1
- Setting which-key-show-operator-state-maps to true "breaks" outer and inner evil maps HOT 1
- 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
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.