This is an Obsidian plugin that allows viewing taskwarrior tasks in Obsidian's reading view. This plugin requires a functional, externally installed taskwarrior installation.
To include a table of tasks, use a task-table
code block. The text inside the code block is parsed as YAML; include a key called command
with the taskwarrior command that should be executed to generate the table. The syntax for this is exactly the same as the taskwarrior CLI syntax except that:
- The report name must be the last token, and will not be defaulted if not provided. For example,
task +nonsense list
is legal, buttask list +nonsense
andtask +nonsense
are not. - Some overrides are provided so the resulting ascii table can be parsed to an HTML table;
rc.detection
is set tooff
, andrc.defaultWidth
is set to1000
.
A basic use-case might look like:
```task-table
command: task list
```
You can use custom reports as well as all of taskwarrior's filter expressions:
```task-table
command: task custom-report /.*ing$/ or +work
```
You can also provide command line overrides; these are often useful for setting a context for a report or modifying a report's presentation when used in Obsidian (but not via the command line):
```task-table
command: task list rc.context:home rc.report.list.filter:"status:pending"
```
- Commit your changes with a useful commit message that does not mention versioning.
- Run
npm version <patch|minor|major>
. - Run
git push && git push $VERSION_TAG
.
- ESLint is a tool that analyzes your code to quickly find problems. You can run ESLint against your plugin to find common bugs and ways to improve your code.
- To use eslint with this project, make sure to install eslint from terminal:
npm install -g eslint
- To use eslint to analyze this project use this command:
eslint main.ts
- eslint will then create a report with suggestions for code improvement by file and line number.
- If your source code is in a folder, such as
src
, you can use eslint with this command to analyze all files in that folder:eslint .\src\