Skip to content

Commit ade5ddb

Browse files
committed
update docs
1 parent 25c6757 commit ade5ddb

File tree

2 files changed

+34
-9
lines changed

2 files changed

+34
-9
lines changed

doc/obsidian.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ COMMANDS *obsidian-commands*
9292
- `:Obsidian tags [TAG ...]` for getting a picker list of all occurrences of the
9393
given tags.
9494
- `:Obsidian today [OFFSET]` to open/create a new daily note. This command also
95-
takes an optional offset in days, e.g. use `:Obsidian today -1` to go to
95+
takes an optional offset in days, e.g.use `:Obsidian today -1` to go to
9696
yesterday’s note. Unlike `:Obsidian yesterday` and `:Obsidian tomorrow` this
9797
command does not differentiate between weekdays and weekends.
9898
- `:Obsidian yesterday` to open/create the daily note for the previous working
@@ -127,14 +127,16 @@ COMMANDS *obsidian-commands*
127127
Since this command is still relatively new and could potentially write a lot of
128128
changes to your vault, I highly recommend committing the current state of your
129129
vault (if you’re using version control) before running it, or doing a dry-run
130-
first by appending "–dry-run" to the command, e.g. `:Obsidian rename new-id
130+
first by appending "–dry-run" to the command, e.g.`:Obsidian rename new-id
131131
--dry-run`.
132132
- `:Obsidian toggle_checkbox` to cycle through checkbox options.
133133
- `:Obsidian new_from_template [TITLE]` to create a new note from a template in
134134
the templates folder. Selecting from a list using your preferred picker. This
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*
@@ -160,7 +162,7 @@ all of obsidian.nvim’s functionality:
160162
- **MacOS** users need `pngpaste` <https://github.com/jcsalterego/pngpaste> (`brew install pngpaste`) for the `:Obsidian pasteimg` command.
161163
- **Linux** users need xclip (X11) or wl-clipboard (Wayland) for the `:Obsidian pasteimg` command.
162164

163-
Search functionality (e.g. via the `:Obsidian search` and `:Obsidian
165+
Search functionality (e.g. via the `:Obsidian search` and `:Obsidian
164166
quickswitch` commands) also requires a picker such telescope.nvim
165167
<https://github.com/nvim-telescope/telescope.nvim> (see
166168
|obsidian-plugin-dependencies| below).
@@ -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)