vault-tasks

Crates.iovault-tasks
lib.rsvault-tasks
version0.4.0
sourcesrc
created_at2024-11-09 08:38:40.116338
updated_at2024-11-09 10:21:37.723382
descriptionTUI Markdown Task Manager
homepage
repositoryhttps://github.com/louis-thevenet/vault-tasks
max_upload_size
id1441935
size550,600
Louis Thevenet (louis-thevenet)

documentation

README

Vault-tasks

vault-tasks is a TUI Markdown task manager.

It will parse any Markdown file or vault and display the tasks it contains.

Demo

Why

I made this tool because I wanted to integrate my task system directly inside my Second Brain.

Markdown tasks are very easy to integrate with knowledge and projects.

I also spend most of my writing time in the terminal (Helix) and do not rely on heavy external software.

Features

  • Task Parser (see Usage)
    • Subtasks
    • Fixed and relative dates
    • special today tag and regular tags
    • descriptions
    • priority
  • Navigate vault
  • Search through tasks (sort and filter)
  • Edit tasks or open in default editor

Planned Features

  • A Pomodoro (or flowtime) tab
  • A Timeline tab with a calendar and a chronological view. (I'd also like to be able to import calendar files)

Installation

Cargo

cargo install vault-tasks

Nix

It will be added to nixpkgs when I have time to make a nix module. For now, add the repo to your inputs:

vault-tasks = {
  url = "github:louis-thevenet/vault-tasks";
  inputs.nixpkgs.follows = "nixpkgs";
};

And use the package in your configuration: inputs.vault-tasks.packages.${pkgs.system}.default

Build From Source

git clone https://github.com/louis-thevenet/vault-tasks.git
cd vault-tasks
cargo build --release

Usage

See vault-tasks --help for basic usage.

Writing tasks

<!-- An example task in your markdown file -->

- [ ] An example task #tag tomorrow p1
      A description
      of this task
  - [x] A subtask today @today
  - [ ] Another subtask 10/23 @today
Token Meaning
- [ ] (- [X]) declares a task and sets its state
p1 (p10, ...) sets the priority
#tag is a tag, a task can have zero or more tags
@today (@tod, @t) is a special tag that will mark the task as part of today's tasks
23/10 (2024/23/10) sets the due date with a literal date
today (tdy) sets the due date to today
tomorrow (tmr) sets the due date to tomorrow
a day of the week (monday or mon, etc) sets the due date to the next occurence of that day
3d (3m, 3w, 3y, ...) means "in 3 days" and will set the due date accordingly
  • @today allows you mark a task for today while keeping a due date. It will show up with a ☀️ in vault-tasks.

  • Relative dates are always replaced by literal dates once vault-tasks is run. Thanks to this, vault-tasks does not store any data except its config file.

  • Other tokens will be part of the title of that task

  • Descriptions and subtasks are declared using indents (see config file)

This is what you will see in the preview of this README.md in vault-tasks:

Or when filtering for @today tasks:

Default Key Map

Check the key map within the ap with ?

Navigation

Key Alternate Key Action
k , shift-tab Previous entry
j , tab Next entry
h , back_space Leave current entry
l ,enter Enter next entry
shift-h shift-← Previous tab
shift-l shift-→ Next tab
ctrl-k ctrl-↓ Scroll up
ctrl-j ctrl-↑ Scroll down
q ctrl-c Quit the application
page_down Scroll one page down
page_up Scroll one page up

Commands

Key Action
s Focus search bar (enter or esc to unfocus)
Shift-s Change Sorting mode in Filter tab
? Open keybindings menu for the current tab
o Open selection in default editor
e Quickly edit selection in Explorer tab
r Reload vault

Configuration

The config.toml contains the default configuration which can be generated using vault-tasks generate-config.

In $HOME/.config/vault-tasks/config.toml, you can override the default settings, keybindings and colorscheme.

In particular, you can set a default vault path.

Contributing

Feel free to submit issues or pull requests. Contributions are welcome!

Commit count: 123

cargo fmt