1
0
silverbullet/plugs/tasks/tasks.plug.yaml

54 lines
1.1 KiB
YAML
Raw Normal View History

2022-04-26 17:04:36 +00:00
name: tasks
2022-04-11 18:34:09 +00:00
syntax:
DeadlineDate:
firstCharacters:
- "📅"
regex: "📅\\s*\\d{4}\\-\\d{2}\\-\\d{2}"
styles:
backgroundColor: "rgba(22,22,22,0.07)"
CompletedDate:
firstCharacters:
- "✅"
regex: "✅\\s*\\d{4}\\-\\d{2}\\-\\d{2}"
styles:
backgroundColor: "rgba(22,22,22,0.07)"
RepeatInterval:
firstCharacters:
- "🔁"
regex: "🔁\\s*every\\s+\\w+"
styles:
backgroundColor: "rgba(22,22,22,0.07)"
2022-03-28 13:25:05 +00:00
functions:
# API
updateTaskState:
path: task.ts:updateTaskState
2022-03-28 13:25:05 +00:00
indexTasks:
path: "./task.ts:indexTasks"
events:
- page:index
2022-03-28 13:25:05 +00:00
taskToggle:
path: "./task.ts:taskToggle"
events:
- page:click
taskToggleCommand:
path: ./task.ts:taskCycleCommand
command:
name: "Task: Cycle State"
key: Alt-t
taskPostponeCommand:
path: ./task.ts:postponeCommand
command:
2022-06-28 12:14:15 +00:00
name: "Task: Postpone"
key: Alt-+
contexts:
- DeadlineDate
previewTaskToggle:
path: ./task.ts:previewTaskToggle
events:
- preview:click
taskComplete:
path: ./complete.ts:completeTaskState
events:
- editor:complete