New /item slash command

pull/925/head
Zef Hemel 2024-07-07 12:11:38 +02:00
parent f914c40330
commit 49ab7111ee
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,10 @@
---
tags: template
description: Make this a bullet item
hooks.snippet:
slashCommand: item
matchRegex: "^(\\s*)[\\-\\*]?\\s*"
command: "Text: Turn into a bullet item"
key: "Ctrl-q i"
---
$1*

View File

@ -4,7 +4,7 @@ description: Make this a task
hooks.snippet:
slashCommand: task
matchRegex: "^(\\s*)[\\-\\*]?\\s*(\\[[ xX]\\])?\\s*"
command: "Turn into task"
command: "Text: Turn into task"
key: "Ctrl-q t"
---
$1* [ ]