Aktionsblöcke
Das Plugin zeigt einen Codeblock in einer Notiz als Schaltfläche. Eine Notiz mit solchen Blöcken wird so zu einem Runbook, das du ausführen kannst.

So schreibst du einen Block
Verwende die Sprache opfold-action. Jede Zeile hat die Form key: value. Das Feld label ist der Text der Schaltfläche.
Einen Workflow starten. Die Notiz ist die Aufgabendatei des Laufs.
label: Plan this task
workflow: plan.yaml
Einen Workflow mit einer anderen Aufgabendatei und einer Variablen starten.
label: Review the import
workflow: review.yaml
task: 02 Projects/Demo/task-001 - Single Task.md
var.TARGET: banking import
Einen Plugin-Befehl starten. Der Pfad der Notiz ist die Eingabe des Befehls.
label: Show the search index
command: rag.status
Eine Chat-Session öffnen. {{file}} ist ein Link auf die Notiz.
label: Summarize this note
prompt: Summarize {{file}} in five sentences.
Felder
| Feld | Bedeutung |
|---|---|
label |
Der Text der Schaltfläche. |
workflow |
Die Workflow-Datei, die die Schaltfläche startet. |
task |
Die Aufgabendatei des Laufs. Der Standardwert ist die Notiz. |
var.<NAME> |
Eine Variable des Workflows. |
command |
Die ID eines Plugin-Befehls. |
input |
Die Eingabe des Befehls. Der Standardwert ist der Pfad der Notiz. |
prompt |
Die erste Nachricht einer Chat-Session. |
Wenn das Plugin ausgeschaltet ist
Der Block erscheint als normaler Codeblock.