blob: 632de962a261cbe2753cc64fe8b63b7be8dd3e81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}
|