misc: various small tweaks

This commit is contained in:
Anish Lakhwara 2024-01-05 23:43:01 -08:00
parent b1284ab5d0
commit b59ad9f485
3 changed files with 12 additions and 9 deletions

View file

@ -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";

View file

@ -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 = {

View file

@ -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