Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants