diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-11-22 09:15:07 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-11-22 09:15:07 +0100 |
commit | 88ed4809398dce676ba516e2016f8b51d53b4720 (patch) | |
tree | 1073cd866eb10ac2b5111a8784403ccbff5e9246 /etc/functions/gtd-move | |
parent | 244de02d830c9a42bd423715b3c8031ade2fa702 (diff) |
function cleanup
Diffstat (limited to 'etc/functions/gtd-move')
-rw-r--r-- | etc/functions/gtd-move | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/etc/functions/gtd-move b/etc/functions/gtd-move deleted file mode 100644 index a20502c..0000000 --- a/etc/functions/gtd-move +++ /dev/null @@ -1,22 +0,0 @@ -## vim:ft=zsh -## Helper for my gtd system -## Usage: gtd-move <old-database> <index> <new-database> -## Copyright (C) 2008 by Daniel Friesel <derf@finalrewind.org> -## License: WTFPL <http://sam.zoy.org/wtfpl> - -if [[ ${#*} != 3 ]] { - echo "Usage: gtd-move <from-database> <item> <to-database>" - return -} - -typeset prefix="${HOME}/var/gtd" -typeset format='display=%T' -typeset from=${1} -typeset itemno=${2} -typeset to=${3} -typeset IFS=$'\n' -typeset -a item - -item=$(todo --database ${prefix}/${from} --format ${format} ${itemno}) -todo --database ${prefix}/${to} --priority medium --add ${item} -todo --database ${prefix}/${from} --remove ${itemno} |