Custom Editor Commands for Pasting and New Line

Hi Guys,

I’m trying to put one together one that adds a property and then pastes the clipboard as the value.

Use Case:

I often want to mark a task as ‘waiting’ on something else.
E.g.
Waiting on a different task. Waiting on a person/department. Etc.

It works really well but I want to simplify the typing. Often my tasks are waiting on other tasks and I copy the block ref then add a property and paste in the block ref.

What I’ve Tried

I’ve tried using editor/newline which seems to do nothing :thinking:.

I’ve found though editor/input "\nwaiting::" adds a new line and then the text as I want so the only bit I’m missing is how to make the editor paste.

I’ve found this command but as far as I can tell it doesn’t seem to do anything.

:editor/paste-text-in-one-block-at-point

Any help very much appreciated.

Current Attempts

Here’s my current ‘tests’ that don’t work on various ways.

 :commands
 [
  ["edit new line and add waiting", [[:editor/new-line :editor/input "waiting:: "]]]
  ["new line - waiting - paste", [[:editor/input "\nwaiting:: " :editor/paste-text-in-one-block-at-point]]]
 ]

The first one does literally nothing. The second one does the new line, the wording, but doesn’t paste.

Bonus Points

I’ve never been able to find a master list of those commands so if anyone can point me in the right direction it would be much appreciated.