Compare commits

...

8 Commits

Author SHA1 Message Date
Oktay Imanzade 3ace9de40c
Merge be03c21a84 into 22aa1455a6 2024-04-04 16:37:35 +00:00
Oktay Imanzade be03c21a84
preview-tabbed: simplified thubmnail view check 2024-04-04 20:37:32 +04:00
Oktay Imanzade ac6b31ad0e
preview-tabbed: fixed not removing tab after leaving PICTURES folder 2024-03-29 20:02:04 +04:00
Oktay Imanzade 0c28e160b8
Merge branch 'jarun:master' into master 2024-03-17 17:37:04 +04:00
Oktay Imanzade 7b232440de
preview-tabbed: fixed if statement again 2024-02-29 04:40:33 +04:00
Oktay Imanzade ecc0a4d38b
preview-tabbed: fixed if statement 2024-02-29 04:30:06 +04:00
Oktay Imanzade 7efd6db873
preview-tabbed: if Pictures folder has no supported images use nnn 2024-02-29 04:09:31 +04:00
Oktay Imanzade 094f16df5d
preview-tabbed: show sxiv/nsxiv in thumbnail mode when showing Pictures folder 2024-02-29 03:20:49 +04:00
1 changed files with 14 additions and 1 deletions

View File

@ -69,6 +69,9 @@ else
echo "No xembed term found" >&2
fi
if type xdg-user-dir >/dev/null 2>&1 ; then
PICTURES_DIR=$(xdg-user-dir PICTURES)
fi
term_nuke () {
# $1 -> $XID, $2 -> $FILE
@ -177,7 +180,17 @@ previewer_loop () {
fi
;;
inode/directory)
$TERMINAL "$XID" -e nnn "$FILE" &
if [[ -n $PICTURES_DIR && "$FILE" == "$PICTURES_DIR"* ]] ; then
if type sxiv >/dev/null 2>&1 ; then
sxiv -te "$XID" "$FILE" &
elif type nsxiv >/dev/null 2>&1 ; then
nsxiv -te "$XID" "$FILE" &
else
$TERMINAL "$XID" -e nnn "$FILE" &
fi
else
$TERMINAL "$XID" -e nnn "$FILE" &
fi
;;
text/*)
if [ -x "$NUKE" ] ; then