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

yasnippet bindings have no label #337

Open
vnckppl opened this issue Mar 9, 2022 · 1 comment
Open

yasnippet bindings have no label #337

vnckppl opened this issue Mar 9, 2022 · 1 comment

Comments

@vnckppl
Copy link

vnckppl commented Mar 9, 2022

Yasnippets can have a keybinding assigned to them, e.g.:

# -*- mode: snippet -*-
# name: Highlight
# expand-env: ((yas-wrap-around-region nil) (item-string ""))
# binding : C-c y h y
(...)

which-key does detect these keybindings, but does not display a label. So, for the snippet above, after pressing C-c y h, which-key would display:

y -> nil

Is it possible to have which-key pull the label from the # name: tag of a yasippet?

@justbur
Copy link
Owner

justbur commented May 18, 2022

Hm, in principle yes, but after looking at how yasnippet works, this appears to be quite a bit of work, and I do not have much time these days...

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