pet icon indicating copy to clipboard operation
pet copied to clipboard

[Feature Request] Support multi-line snippet

Open jiamingz42 opened this issue 5 years ago • 2 comments

jiamingz42 avatar Oct 18 '19 18:10 jiamingz42

That would be nice indeed!

What I noticed is that if you manually add "\n" to your command in ".config/pet/snippet.toml" then those snippets outputs as a multi-line command instead.

Still investigating why I can't use "native" multi-line input for new pet snippets. It would have been really cool if pet respected editor setting in .config/pet/config.toml and used a specified editor instead of a single-line input that it currently has.

nfedyashev avatar Oct 23 '19 20:10 nfedyashev

I've made a PR for multi-line support #161. Basic feature is usable.

ofey404 avatar Mar 17 '21 10:03 ofey404