diff --git a/taskwarrior/.config/sh/alias.d/taskwarrior.sh b/taskwarrior/.config/sh/alias.d/taskwarrior.sh index 4c63377..15eb500 100644 --- a/taskwarrior/.config/sh/alias.d/taskwarrior.sh +++ b/taskwarrior/.config/sh/alias.d/taskwarrior.sh @@ -5,10 +5,15 @@ alias taskopen='taskopen -c ${XDG_DATA_HOME}/task/notes' # invoking t starts the task shell # passing arguments along passes them straight through to taskwarrior instead t() { - # check for existence of tasksh before doing this whole song and dance - if type tasksh >/dev/null 2>&1 && [ "$#" -eq 0 ]; then - tasksh - else - task "$@" - fi + # check for existence of tasksh before doing this whole song and dance + if type tasksh >/dev/null 2>&1 && [ "$#" -eq 0 ]; then + tasksh + else + task "$@" + fi } + +# copy the `task` zsh completions over to my little alias 😉 +# this is not very pretty and not super portable (needs ps) but +# works for now. from here: https://unix.stackexchange.com/a/72564/414758 +if [ "$(ps -p $$ -o comm --no-headers)" = "zsh" ]; then compdef t=task; fi diff --git a/taskwarrior/.config/task/taskrc b/taskwarrior/.config/task/taskrc index 60fecc6..614f990 100644 --- a/taskwarrior/.config/task/taskrc +++ b/taskwarrior/.config/task/taskrc @@ -54,9 +54,6 @@ urgency.annotations.coefficient=0 # maybe items are not urgent at all urgency.user.tag.maybe.coefficient=-100.0 -# only ever show one result in the task shell -tasksh.autoclear=1 - # temporary taskd configuration for freecinc (should be selfhosted at some point) taskd.server=freecinc.com:53589 taskd.key=~/.local/share/task/keys/freecinc_7ebc40a3.key.pem @@ -79,10 +76,21 @@ taskd.credentials=FreeCinc\/freecinc_7ebc40a3\/1b2f5c1e-3d62-4a35-82c8-82ce0e237 #include /usr/share/doc/task/rc/solarized-dark-256.theme #include /usr/share/doc/task/rc/solarized-light-256.theme #include /usr/share/doc/task/rc/no-color.theme + +# try to fix some color weirdness, especially in tmux color.scheduled=on grey + +# only ever show one result in the tasksh +tasksh.autoclear=1 +# for tasksh review sessions uda.reviewed.type=date uda.reviewed.label=Reviewed report._reviewed.description=Tasksh review report. Adjust the filter to your needs. report._reviewed.columns=uuid report._reviewed.sort=reviewed+,modified+ report._reviewed.filter=( reviewed.none: or reviewed.before:now-6days ) and ( +PENDING or +WAITING ) + +# different life contexts +context.personal= project.hasnt:arbeit +context.arbeit= project:arbeit +context=personal