Snippet arguments

(David Kebler) #1

Be way nice if snippets could accept arguments.
the you would have say

import snippet bill jim

and then in your snippet you could use {arg1} {arg2}

That would make it possible to have “one snippet to rule them all”

If this is a good idea and doable I’ll make a issue on github.


(Matthew Fay) #2

If I’m remembering right, this suggestion was floated in the initial snippet implementation PR - it wasn’t part of the initial spec because of the complication of exactly how to implement the argument substitution.

I don’t think there’s an open feature request issue for it at the moment, so you could absolutely open one.