Use "shortcuts" in command

Hi all,
I am trying to work on some commands in the config.edn. Especially I want to add a block-property by using a command.
:commands

 [
  ["mycommand" [[:editor/input "myproperty:: xyz"] [:editor/input :editor/new-line]]]
  ]

I can add a property, but I do not get a newline to work. I do not get any error, but also the “:editor/new-line” doesn’t work. I got this from the list of shortcuts, but logseq doesn’t accept the input.
Any suggestions on commands?

2 Likes

Want to know how it works too. I want to get the page name in the command but it didn’t work.
Did u figure it out?

In case you guys were still looking I figured this out the other day.

I justput “\n” into the editor-input command

like this:

  ["my command", [[:editor/input "\nwaiting:: "]]]

I couldn’t get the other editor command to work either so this is my workaround.