Add .taskrc and functions for working with taskwarrior

This commit is contained in:
mitchell 2020-08-11 12:16:26 -04:00
parent d1ad6dbf21
commit 954b6d4220
4 changed files with 51 additions and 1 deletions

View file

@ -7,7 +7,7 @@ function define_aliases -a uname -d 'Defines aliases for commonly used commands'
alias tocb 'xclip -in -selection clipboard'
alias fromcb 'xclip -out -selection clipboard'
alias ssh-rm-host 'ssh-keygen -f ~/.ssh/known_hosts -R'
alias wiki 'nvim +VimwikiIndex; and exit'
alias wiki 'nvim +VimwikiIndex'
switch "$uname"
case 'Linux'

View file

@ -0,0 +1,4 @@
function tasko -a id -d 'Open the link of a taskwarrior task by id'
set link (task _get $id.link)
if test -n $link; open $link; end
end

View file

@ -0,0 +1,9 @@
function taskwiki -a id
set page (task _get $id.wiki)
if test -n $page
$EDITOR +VimwikiIndex "+VimwikiGoto $page"
else
echo 'no wiki file specified'
end
end