mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-16 11:57:23 +00:00
Add .taskrc and functions for working with taskwarrior
This commit is contained in:
parent
d1ad6dbf21
commit
954b6d4220
4 changed files with 51 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
4
.config/fish/functions/tasko.fish
Normal file
4
.config/fish/functions/tasko.fish
Normal 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
|
||||
9
.config/fish/functions/taskwiki.fish
Normal file
9
.config/fish/functions/taskwiki.fish
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue