diff options
Diffstat (limited to 'etc/functions/imagetag')
-rw-r--r-- | etc/functions/imagetag | 16 |
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 +} |