This commit is contained in:
Nikita Ivanov 2022-06-18 15:35:27 +05:00
parent 39f1c78f99
commit 53c19055b6
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133
7 changed files with 16 additions and 14 deletions

View File

@ -1,5 +1,5 @@
if exists exiftool; then if exists exiftool; then
exiftool "$f" || true exiftool -- "$f" || true
else else
cat "$f" cat < "$f"
fi fi

View File

@ -1 +1 @@
cat "$f" cat < "$f"

View File

@ -1 +1 @@
jq -C . "$f" jq -C . < "$f"

View File

@ -1 +1 @@
ls --color --group-directories-first "$f" ls --color --group-directories-first -- "$f"

View File

@ -1 +1 @@
mdcat --columns "$w" "$f" mdcat --columns "$w" -- "$f"

View File

@ -4,11 +4,12 @@ office() {
# File produced by libreoffice # File produced by libreoffice
jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')" jpg="$(printf '%s\n' "$f" | sed 's|^.*/||; s|\..*$||')"
libreoffice \ libreoffice \
--headless \ --headless \
--convert-to jpg "$f" \ --convert-to jpg \
--outdir "$cache_d" >/dev/null && --outdir "$cache_d" \
mv "$cache_d/$jpg.jpg" "$cache_f" "$f" >/dev/null &&
mv -- "$cache_d/$jpg.jpg" "$cache_f"
} }
convert_and_show_image office convert_and_show_image office

View File

@ -1,3 +1,4 @@
source-highlight \ source-highlight \
--tab=4 --out-format=esc \ --tab=4 --out-format=esc \
--style=esc256.style --failsafe -i "$f" --style=esc256.style --failsafe -i \
-- "$f"