add cat as fallback to text previewer

This commit is contained in:
rabite 2019-06-19 23:42:30 +02:00
parent 6060deb33d
commit cd01a21f68
5 changed files with 3 additions and 15 deletions

View File

@ -1,3 +0,0 @@
#!/bin/sh
7z -l -p -- "${1}"

View File

@ -1,6 +0,0 @@
#!/bin/sh
w3m -dump ||
elinks -dump ||
links -dump ||
lynx -dump

0
extra/previewers/definitions/openoffice Normal file → Executable file
View File

View File

@ -1,5 +0,0 @@
#!/bin/sh
pdftotext -l 10 -layout -nopgbrk -q "${1}" - 2> /dev/null ||
mutool draw -F txt -i -- "${FILE_PATH}" 1-10 2> /dev/null ||
exiftool "${FILE_PATH}" 2> /dev/null

View File

@ -4,4 +4,6 @@ bat --plain --color=always --paging=never "${1}" --line-range 1:100 --tabs 8
2>/dev/null && exit 5
highlight --replace-tabs=4 --force -- "${1}"
2>/dev/null && exit 5
2>/dev/null && exit 5
cat "${1}"