zsh-snippets icon indicating copy to clipboard operation
zsh-snippets copied to clipboard

How do we expand snippets

Open ghost opened this issue 7 years ago • 2 comments

I thought M-x was ⌥x, but that looks like this:

snip<2093>snippet-expand

snip is my custom snippet

snippet-add snip test

I can't figure out how to expand it

ideally it should be binded to tab

ghost avatar Nov 06 '18 15:11 ghost

I added bindkey ‘^l’ snippet-expand to my zshrc

ghost avatar Nov 06 '18 20:11 ghost

Sorry, this issue got completely lost in my email. Did binding the other key work for you? I don't have a Mac, so I'm not sure what counts as the Meta key for their terminal emulators, but usually it is alt and can also be done by pressing esc then the desired key (which I think is somewhat dumb, but that's the way terminals are).

By the way, my Zsh plugins are a really low priority for me these days. Feel free to fork this repo and do whatever you want with it.

willghatch avatar Jan 10 '19 14:01 willghatch