Skip to content

Commit 95cc004

Browse files
committed
update docs
1 parent 25c6757 commit 95cc004

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

doc/obsidian.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ COMMANDS *obsidian-commands*
135135
command has one optional argument: the title of the new note.
136136
- `:Obsidian toc` to load the table of contents of the current note into a picker
137137
list.
138+
- `:Obsidian tasks [STATUS]` to load the list of tasks of the current vault into
139+
a picker list.
138140

139141

140142
DEMO *obsidian-demo*
@@ -580,12 +582,12 @@ carefully and customize it to your needs:
580582
max_file_length = 5000, -- disable UI features for files with more than this many lines
581583
-- Define how various check-boxes are displayed
582584
checkboxes = {
583-
-- NOTE: the 'char' value has to be a single character, and the highlight groups are defined below.
584-
[" "] = { char = "󰄱", hl_group = "ObsidianTodo" },
585-
["x"] = { char = "", hl_group = "ObsidianDone" },
586-
[">"] = { char = "", hl_group = "ObsidianRightArrow" },
587-
["~"] = { char = "󰰱", hl_group = "ObsidianTilde" },
588-
["!"] = { char = "", hl_group = "ObsidianImportant" },
585+
-- NOTE: the 'char' value and the status has to be a single character, and the highlight groups are defined below.
586+
[" "] = { char = "󰄱", order = 1, name = "todo", hl_group = "ObsidianTodo" },
587+
["x"] = { char = "", order = 2, name = "done", hl_group = "ObsidianDone" },
588+
[">"] = { char = "", order = 3, name = "doing", hl_group = "ObsidianRightArrow" },
589+
["~"] = { char = "󰰱", order = 4, name = "cancelled", hl_group = "ObsidianTilde" },
590+
["!"] = { char = "", order = 5, name = "important", hl_group = "ObsidianImportant" },
589591
-- Replace the above with this if you don't have a patched font:
590592
-- [" "] = { char = "☐", hl_group = "ObsidianTodo" },
591593
-- ["x"] = { char = "✔", hl_group = "ObsidianDone" },

doc/obsidian_api.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,29 @@ Parameters ~
665665
Return ~
666666
`(obsidian.Picker| `(optional))``
667667

668+
------------------------------------------------------------------------------
669+
Class ~
670+
{obsidian.Task}
671+
672+
Fields ~
673+
{path} `(string)` The path to the note.
674+
{line} `(integer)` The line number (1-indexed) where the task was found.
675+
{description} `(string)` The text of the line where the task was found.
676+
{status} `(string)` The status of the task.
677+
678+
------------------------------------------------------------------------------
679+
*obsidian.Client.find_tasks()*
680+
`Client.find_tasks`({self})
681+
Return ~
682+
`(obsidian.Task[])`
683+
684+
------------------------------------------------------------------------------
685+
*obsidian.Client.get_task_status_names()*
686+
`Client.get_task_status_names`({self})
687+
Build the list of task status names sorted by order
688+
Return ~
689+
`(string[])`
690+
668691
------------------------------------------------------------------------------
669692
Class ~
670693
{obsidian.note.HeaderAnchor}

0 commit comments

Comments
 (0)