Closed zeltak closed 6 years ago
You should be able to add a single-key tag to a snippet, for instance f
and then use yankpad-map
in order to insert snippets with keys. Let's say you bind yankpad-map
to C-c y
, you could then press C-c y f
to insert that snippet.
thx!
yeah i use that for some snippets currently but find that additional keys for direct snippet expansion would be more flexible and quicker :)
also can the single key be 2 keys like C-c y f f
? otherwise it will quickly run out of characters :)
finally, one of the reasons i wanted to call a snippet directly (like calling a function) would be using it with hydras, which would be super useful to visually get hints on what snippets and keys are available to insert :)
thx alot again!
Z
You can now use yankpad-map-simulate
for this.
Hi!
was wondering if i could somehow bind a specific expansion from one of my yankpad subheaders to a key?
for example in emacs bind a key like
f4
to insert/expand the***
file subheader?thx alot again for this amazing tool which i have been using 100 times a day for the past 2 years :) :)
Z