Snippets or simple macros

In my notes, I tend to use a boilerplate to write equations repeatedly

```math
\begin{array}{rl}
//cursor goes here
\end{array}
```

It would be helpful if I could make my own custom macros similar to how I can make a bold text block with command-b.

Hi Abdul,

Thank you for the question.
That’s d be an advanced way to use Inkdrop.
You have to understand the APIs to hack it.
Actually you can do that by writing a custom script.
The documentations about creating a note template and about the editor would be helpful.

You can insert a text at the cursor position like so:

var cm = inkdrop.getActiveEditor().cm
cm.replaceSelection('foo')

Hope that helps.

A quick follow-up. Jasper created a snippet plugin:

https://my.inkdrop.app/plugins/snippets

Hope that helps your workflow.