Compare commits
No commits in common. "378d91ca0ea91433d7f8855c9c63ec2f9cfdff64" and "e4cc5369fa45494dcd0405790d0e2e60e19d43f4" have entirely different histories.
378d91ca0e
...
e4cc5369fa
BIN
preview.png
BIN
preview.png
Binary file not shown.
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.2 MiB |
BIN
preview2.png
BIN
preview2.png
Binary file not shown.
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.3 MiB |
@ -1,7 +1,6 @@
|
||||
#!/bin/sh
|
||||
# wrapper over tmsu for easy tagging
|
||||
# tags untagged files for the database in the current working directory
|
||||
# or pipe in a list of files to tag
|
||||
|
||||
set -e
|
||||
|
||||
@ -61,11 +60,7 @@ appendargs() {
|
||||
}
|
||||
|
||||
INPUT_FILE="$(mktemp)"
|
||||
if [ -t 0 ]; then
|
||||
tmsu untagged > "$INPUT_FILE"
|
||||
else
|
||||
cat /dev/stdin > "$INPUT_FILE"
|
||||
fi
|
||||
tmsu untagged > "$INPUT_FILE"
|
||||
|
||||
# this seems to magically fix some tmsu issue i don't really understand
|
||||
# tmsu freezes for a second or two
|
||||
@ -76,10 +71,7 @@ while read -r FILE; do
|
||||
continue
|
||||
fi
|
||||
|
||||
tmsu tags -1 "$FILE" | tail -n+2 > "$TMSU_ARGS"
|
||||
|
||||
view "$FILE"
|
||||
|
||||
appendargs
|
||||
|
||||
while true; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user