You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit enables function to define custom queries
within configuration file or by environment variables.
Its not scope of this commit to define custom queries on-the-fly
on the ui.
Closes#24
-[x] Improved CI pipeline in order to increase continues quality checks.
7
+
-[x] Improved mobile view: proper scaling of the pages as well as headers are now really sticky, not fixed anymore. This ensures, that the header does not cover any tasks on small displays.
8
+
9
+
## Tue 29, April, 2025
10
+
-[x] Rework of task modifications.
11
+
-[x] Adding absolute dates in task details.
12
+
-[x] Added possibility to delete tasks.
13
+
-[x] For denotation its now possible to select specific annotations.
| TASK_WEB_TWK_SERVER_PORT | TWK_SERVER_PORT | Specifies the server port (see "Ports") |
84
84
| TASK_WEB_DISPLAY_TIME_OF_THE_DAY | DISPLAY_TIME_OF_THE_DAY | Displays a time of the day widget in case of value `1`|
85
85
| TASK_WEB_TWK_USE_FONT | TWK_USE_FONT | Font to be used. If not, browsers default fonts are used |
86
-
| TASK_WEB_TWK_THEME | TWK_THEME | Defines the theme to be used (see "Themes") |
86
+
| TASK_WEB_TWK_THEME | TWK_THEME | Defines the theme to be used (see "Themes") |
87
87
88
88
## Hooks
89
89
@@ -219,17 +219,63 @@ Keyboard shortcut is `u`
219
219
This will bring up undo confirmation dialog
220
220

221
221
222
+
## Custom queries
223
+
224
+
Task organization is a pretty personal thing. And depending on the project or individual base, custom workflows and reportings are required.
225
+
Create a configuration file under Linux in`$HOME/.config/taskwarrior-web/config.toml` or under Windows in`%APPDATA%\taskwarrior-web\config.toml` and add custom queries.
226
+
227
+
A configuration file can look like:
228
+
229
+
```toml
230
+
[custom_queries]
231
+
232
+
[custom_queries.completed_last_week]
233
+
query = "end.after:today-1wk and status:completed"
234
+
description = "completed last 7days"
235
+
236
+
[custom_queries.due_today]
237
+
query = "due:today"
238
+
description = "to be done today"
239
+
fixed_key = "ni"# this will override randomly generated key
240
+
```
241
+
242
+
Following options for each query definition is available:
As soon as one of the other reports like `next`, `pending` or others are selected, the custom query is unset and `taskwarrior-web` standard reports are shown.
260
+
261
+
Beside of a configuration file, it is possible to configure via environment variables as well:
262
+
```shell
263
+
env TWK_custom_queries__one_query__fixed_key=ni TWK_custom_queries__one_query__query="end.after:today-1wk and status:completed" TWK_custom_queries__one_query__description="completed last 7days" RUST_LOG="INFO" cargo run
264
+
```
265
+
266
+
The same way it is possible to configure the docker container accordingly.
267
+
222
268
## Switch theme
223
269
224
270
It is possible to switch the theme, which is saved inlocal storage too.
225
271
226
272
For this following three symbols are used (left of the command bar):
0 commit comments