Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

which-key doesn't show overrided descriptions when binded key and simulated key is different. #177

Open
AmaiKinono opened this issue Dec 14, 2019 · 1 comment

Comments

@AmaiKinono
Copy link

Here's an example:

(general-def
  "C-c m" '(set-mark-command :wk "Set Mark"))

;; Remap C-c this way so it works as copy when a region is active
(general-def
  :keymaps 'override
  "C-c" (general-predicate-dispatch nil
          (region-active-p) 'kill-ring-save
          t (general-key "C-c" :setup (general-override-mode -1) :teardown (general-override-mode))))

;; Simulate C-c using another key
(general-def
  "C-x g" (general-key "C-c"))

When pressing C-c, the description of m is Set Mark; When pressing C-x g, the description of m is set-mark-command.

I'm not sure if this is a problem of general.el or which-key.

@noctuid
Copy link
Owner

noctuid commented Dec 20, 2019

I think this is a duplicate of #79 or at least related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants