yasnippet-snippets
yasnippet-snippets copied to clipboard
Go: Use Unique key For import and var
trafficstars
Currently import and import( both use imp. Same with var. This is a bit annoying as these are used often and result in a prompt to pick the desired one.
I propose:
var=var Nvar(=var ( N )
Or maybe:
va=var Nvar=var ( N )
mnemonic: var results in a longer definition than va.
Same pattern for import.
Really the key for var ( N ) should support a list of vars as this is the common use case.
Interested? Thoughts? I can submit a PR.
Uhm that's quite a funny syntax, I didn't know you could do that. Anyway which one do you think it's more common @sshaw ?
I would be fine with var and var( for example I think.