silverbullet/plugs/tasks/tasks.plug.yaml

105 lines
2.0 KiB
YAML
Raw Normal View History

2022-04-27 01:04:36 +08:00
name: tasks
2022-03-28 21:25:05 +08:00
functions:
# API
updateTaskState:
path: task.ts:updateTaskState
2022-03-28 21:25:05 +08:00
indexTasks:
path: "./task.ts:indexTasks"
events:
2024-10-11 21:34:27 +08:00
- page:index
2022-03-28 21:25:05 +08:00
taskToggle:
path: "./task.ts:taskToggle"
events:
- page:click
taskToggleCommand:
path: ./task.ts:taskCycleCommand
command:
name: "Task: Cycle State"
key: Alt-t
requireMode: rw
taskPostponeCommand:
path: ./task.ts:postponeCommand
command:
2022-06-28 20:14:15 +08:00
name: "Task: Postpone"
key: Alt-+
requireMode: rw
contexts:
- DeadlineDate
previewTaskToggle:
path: ./task.ts:previewTaskToggle
events:
- preview:click
taskComplete:
path: ./complete.ts:completeTaskState
events:
2024-10-11 21:34:27 +08:00
- editor:complete
2024-01-26 18:10:35 +08:00
removeCompletedTasksCommand:
path: task.ts:removeCompletedTasksCommand
command:
name: "Task: Remove Completed"
requireMode: rw
config:
schema.tag:
task:
type: object
additionalProperties: true
properties:
ref:
type: string
readOnly: true
tag:
type: string
tags:
type: array
items:
type: string
nullable: true
itags:
type: array
items:
type: string
nullable: true
name:
type: string
page:
type: string
parent:
type: string
pos:
type: number
text:
type: string
state:
type: string
done:
type: boolean
deadline:
type: string
nullable: true
taskstate:
type: object
properties:
ref:
type: string
readOnly: true
tag:
type: string
tags:
type: array
items:
type: string
nullable: true
itags:
type: array
items:
type: string
nullable: true
state:
type: string
count:
2024-10-11 21:34:27 +08:00
type: number