diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-02 13:01:32 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-02 13:01:32 +0200 |
| commit | 470ba158fa43123f4f11d47495b837dc08325fc7 (patch) | |
| tree | feb7cc69fc1dae1ee7ed6d3a4a4a9cfc62d25436 | |
| parent | f3f1139e9e888c8d991948f75a5e6116440efbe6 (diff) | |
Update
| -rw-r--r-- | fish/conf.d/taskwarrior.fish | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/fish/conf.d/taskwarrior.fish b/fish/conf.d/taskwarrior.fish index c63865a..87ed8d3 100644 --- a/fish/conf.d/taskwarrior.fish +++ b/fish/conf.d/taskwarrior.fish @@ -8,6 +8,16 @@ function taskwarrior::due_count end end +function taskwarrior::project_tasks + set -l project (basename (git rev-parse --show-toplevel)) + task +project:$project status:pending +end + +function taskwarrior::project_tasks::tasksamurai + set -l project (basename (git rev-parse --show-toplevel)) + tasksamurai +project:$project status:pending +end + function taskwarrior::add::track if test (count $argv) -gt 0 task add priority:L +personal +track $argv @@ -311,6 +321,8 @@ abbr -a tdue 'tasksamurai status:pending due.before:now' abbr -a tasks 'tasksamurai -track' abbr -a track 'taskwarrior::add::track' abbr -a ti 'taskwarrior::invoke' -abbr -a ts 'taskwarrior::invoke; tasksamurai' +abbr -a ts tasksamurai +abbr tpt taskwarrior::project_tasks +abbr tsp taskwarrior::project_tasks::tasksamurai taskwarrior::due_count |
