summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-11-30 10:31:45 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-11-30 10:31:45 +0100
commit05e302926fba8366922ebc3fce60405dcde76df2 (patch)
tree3d2d8b61f78789ad9ed6b4b178a4b7562250824c
parentdc38eff6a759199921b67bac76455fddd50d3c76 (diff)
Added quick & dirty imagetag function
-rw-r--r--etc/functions/imagetag16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/functions/imagetag b/etc/functions/imagetag
new file mode 100644
index 0000000..632de96
--- /dev/null
+++ b/etc/functions/imagetag
@@ -0,0 +1,16 @@
+## vim:ft=zsh
+# quick & dirty tagging
+typeset file tag
+
+for file in *(.); {
+ unset REPLY
+ typeset REPLY
+ feh -g 800x600 $file &
+ echo -n 'Tags: '
+ read
+ for tag in ${(s:, :)REPLY}; {
+ mkdir -p .tags/$tag
+ ln -s ../../$file .tags/$tag/$file
+ }
+ kill %feh
+}