Use this file to discover all available pages before exploring further.
nb treats todos as first-class items stored as plain Markdown files with a predictable structure. Each todo centers on a single primary item — represented as an # [ ] Title heading — and can carry optional metadata in labelled sections: a due date, a description, a task checklist, related links, and tags. Because everything is plain text, todos are fully searchable, version-controlled, and editable with any text editor.
nb todos lists all todos in the current notebook, showing open (✔️ [ ]) and closed (✅ [x]) states:
nb todos# [6] ✔️ [ ] Example todo six.# [5] ✅ [x] Example todo five.# [4] ✔️ [ ] Example todo four.# [3] ✅ [x] Example todo three.# [2] ✅ [x] Example todo two.# [1] ✔️ [ ] Example todo one.
List todos in a specific notebook by adding the notebook name with a colon:
nb todos sample:# [sample:4] ✅ [x] Sample todo four.# [sample:3] ✔️ [ ] Sample todo three.
Tasks (subtasks) inside a todo file are standard Markdown checklist items. nb tasks (shortcut: nb t) lists all tasks across todos and other Markdown documents.
# list tasks in a specific itemnb tasks 7# [7] ✔️ [ ] Example todo seven.# ------------------------------# [7 1] [x] Task one.# [7 2] [x] Task two.# [7 3] [ ] Task three.# list all tasks in a notebooknb tasks example:# list only open tasksnb tasks open 7# list only closed tasksnb tasks closed 7
Tasks are identified by the item selector followed by a space and the sequential task number: [7 2] means task 2 inside item 7.
Tasks are not limited to todo files. Any Markdown document that contains - [ ] or - [x] list items will show up in nb tasks output and can be completed with nb do.
The following end-to-end example shows creating, listing, and completing a todo with tasks:
# 1. Create a todo with two subtasksnb todo add "Write release notes." \ --due "2024-06-01" \ --task "Draft changelog entry." \ --task "Review with team." \ --tags release,docs# 2. List all open todosnb todos open# [1] ✔️ [ ] Write release notes.# 3. View the full todonb show 1 --print# # [ ] Write release notes.# ## Due# 2024-06-01# ## Tasks# - [ ] Draft changelog entry.# - [ ] Review with team.# ## Tags# #release #docs# 4. Mark the first task donenb do 1 1# Done: [1 1] [x] Draft changelog entry.# 5. Mark the second task donenb do 1 2# Done: [1 2] [x] Review with team.# 6. Mark the whole todo as donenb do 1# Done: [1] ✅ [x] Write release notes.