From 05e302926fba8366922ebc3fce60405dcde76df2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 30 Nov 2008 10:31:45 +0100 Subject: Added quick & dirty imagetag function --- etc/functions/imagetag | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 etc/functions/imagetag (limited to 'etc/functions/imagetag') 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 +} -- cgit v1.2.3