porcupine
porcupine copied to clipboard
snippets: pressing some keys to insert often-needed piece of code
would be useful for writing latex, I need to copy/paste \begin{align*} ... \end{align*} a lot
Two ways this could be done that I can think of (or a hybrid):
Extension of the Autocomplete System
This is how it works in VSCode: https://code.visualstudio.com/docs/editor/userdefinedsnippets
When you start typing, it will try to suggest things (a la https://github.com/Akuli/porcupine/issues/921), and you can press CTRL-Space to open the autocomplete window manually (not sure why you would want to do this though, I never do).
Command Palette
Use https://github.com/Akuli/porcupine/issues/1319 to do it.