summaryrefslogtreecommitdiff
path: root/etc/completions/_gtd-move
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-30 17:29:50 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-30 17:29:50 +0100
commitb120bebbbe8e72904513f9b8caea39141809d42c (patch)
tree82a0cd59f64ce8aa643821ab246fb9ef97e428c9 /etc/completions/_gtd-move
parent3727fca950b95eafdeaceca79cef387a8f6fc446 (diff)
Added gtd-move function
Diffstat (limited to 'etc/completions/_gtd-move')
-rw-r--r--etc/completions/_gtd-move15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/completions/_gtd-move b/etc/completions/_gtd-move
new file mode 100644
index 0000000..e9e7bc5
--- /dev/null
+++ b/etc/completions/_gtd-move
@@ -0,0 +1,15 @@
+#compdef gtd-move
+
+typeset -a arguments
+
+arguments=(
+ ':from database:_gtd_database'
+ ':item: '
+ ':to database:_gtd_database'
+)
+
+function _gtd_database {
+ _path_files -W ~/var/gtd -g '*(.)'
+}
+
+_arguments -s $arguments