porcupine icon indicating copy to clipboard operation
porcupine copied to clipboard

snippets: pressing some keys to insert often-needed piece of code

Open Akuli opened this issue 5 years ago • 1 comments

would be useful for writing latex, I need to copy/paste \begin{align*} ... \end{align*} a lot

Akuli avatar Nov 18 '20 11:11 Akuli

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.

benjamin-kirkbride avatar Jul 04 '23 19:07 benjamin-kirkbride