From b59ad9f485a9215a5f13905be2802274566b90bf Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Fri, 5 Jan 2024 23:43:01 -0800 Subject: [PATCH] misc: various small tweaks --- home/profiles/cli/default.nix | 4 ++-- home/profiles/sync/kitaab/default.nix | 14 ++++++++------ home/profiles/task/taskrc | 3 ++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/home/profiles/cli/default.nix b/home/profiles/cli/default.nix index f96b00b1..3eb0bdf8 100644 --- a/home/profiles/cli/default.nix +++ b/home/profiles/cli/default.nix @@ -230,10 +230,10 @@ # task warrior # TODO: make blocked a context? - t = "task -BLOCKED -idea -backlog"; # Adding these to the next task makes modify things hard + t = "task -BLOCKED -idea -backlog"; tt = "taskwarrior-tui -r list"; ti = "task +idea"; - tb = "task list +backlog"; + tb = "task +backlog list"; ttb = "taskwarrior-tui -r backlog"; tr = "task newest limit:page"; tw = "task +wait"; diff --git a/home/profiles/sync/kitaab/default.nix b/home/profiles/sync/kitaab/default.nix index 92c16cf8..46a234dd 100644 --- a/home/profiles/sync/kitaab/default.nix +++ b/home/profiles/sync/kitaab/default.nix @@ -5,15 +5,16 @@ let # Note this will fail if index.wiki is open in vim while this runs mkStartScript = name: pkgs.writeShellScript "${name}.sh" '' # set -euo pipefail # Sometimes vimwiki is open and that causes `vimwiki tags rebuild` to fail, we still want to push to git in those cases - PATH=/run/current-system/sw/bin:/etc/profiles/per-user/anish/bin: - cd /home/anish/kitaab + PATH=/run/current-system/sw/bin:/etc/profiles/per-user/anish/bin:$PATH + cd /home/anish/kitaab/vimwiki vimwiki tags rebuild - # python3 poonam/main.py generateindexs - # python3 poonam/main.py generatebacklinks + cd .. pushd kalpana/ - fennel main.fnl + ${pkgs.luaPackages.fennel}/bin/fennel main.fnl build + popd + pushd vimwiki/ + git add -A . popd - git add -A ./vimwiki/** git diff-index --quiet HEAD || git commit -m 'syncing kitaab' # if nothing, don't exit 1 git push exit 0 @@ -23,6 +24,7 @@ in systemd.user.services.kitaab-sync = { Service = { ExecStart = "${mkStartScript name}"; + Path = [ pkgs.luaPackages.fennel ]; }; }; systemd.user.timers.kitaab-sync = { diff --git a/home/profiles/task/taskrc b/home/profiles/task/taskrc index 40609f3d..9a8ebbcc 100644 --- a/home/profiles/task/taskrc +++ b/home/profiles/task/taskrc @@ -72,7 +72,8 @@ report.unblocked.labels=ID,Deps,Proj,Tags,Due,Active,Description report.unblocked.columns=id,depends,project,tags,due,start.active,description # Next -report.next.filter=(status:pending -idea -backlog limit:0) # pro.not:ideas +# It's not a good idea to filter this view, since modify depends on the next view +report.next.filter=(status:pending limit:0) # pro.not:ideas -idea -backlog report.next.labels=ID,Active,Deps,P,Project,Tag,Recur,S,Due,Until,Description report.next.columns=id,start.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description