cli + tui to publish to leaflet (wip) & manage tasks, notes & watch/read lists 馃崈
charm
leaflet
readability
golang
1---
2title: Task Operations
3sidebar_label: Operations
4description: List, view, and update tasks from the CLI and TUI.
5sidebar_position: 3
6---
7
8# Task Operations
9
10## Listing and Filtering
11
12**Interactive list** (default):
13
14```sh
15noteleaf task list
16```
17
18Navigate with arrow keys, press Enter to view details, `q` to quit.
19
20**Static list** (for scripting):
21
22```sh
23noteleaf task list --static
24```
25
26**Filter by status**:
27
28```sh
29noteleaf task list --status pending
30noteleaf task list --status completed
31```
32
33**Filter by project**:
34
35```sh
36noteleaf task list --project work
37```
38
39**Filter by priority**:
40
41```sh
42noteleaf task list --priority high
43```
44
45**Filter by context**:
46
47```sh
48noteleaf task list --context @office
49```
50
51**Show all tasks** (including completed):
52
53```sh
54noteleaf task list --all
55```
56
57## Viewing Task Details
58
59View complete task information:
60
61```sh
62noteleaf task view 1
63```
64
65JSON output for scripts:
66
67```sh
68noteleaf task view 1 --json
69```
70
71Brief format without metadata:
72
73```sh
74noteleaf task view 1 --format brief
75```
76
77## Updating Tasks
78
79Update single attribute:
80
81```sh
82noteleaf task update 1 --priority urgent
83```
84
85Update multiple attributes:
86
87```sh
88noteleaf task update 1 \
89 --priority urgent \
90 --due tomorrow \
91 --add-tag critical
92```
93
94Change description:
95
96```sh
97noteleaf task update 1 --description "New task description"
98```
99
100Add and remove tags:
101
102```sh
103noteleaf task update 1 --add-tag urgent --remove-tag later
104```
105
106## Interactive Editing
107
108Open interactive editor for complex changes:
109
110```sh
111noteleaf task edit 1
112```
113
114This provides a TUI with visual pickers for status and priority, making updates faster than command flags.