mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Preview-tui fix winch_handler
This commit is contained in:
parent
2bd72d1b29
commit
b89c32b9fa
|
@ -274,8 +274,10 @@ ueberzug_remove() {
|
||||||
winch_handler() {
|
winch_handler() {
|
||||||
clear
|
clear
|
||||||
kill "$(cat "$IMGPID")" "$(cat "$PAGERPID")"
|
kill "$(cat "$IMGPID")" "$(cat "$PAGERPID")"
|
||||||
|
if [ -p "$FIFO_UEBERZUG" ]; then
|
||||||
pkill -P "$$"
|
pkill -P "$$"
|
||||||
if [ -p "$FIFO_UEBERZUG" ]; then tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json & fi
|
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json &
|
||||||
|
fi
|
||||||
cat "$CURSEL" > "$NNN_FIFO"
|
cat "$CURSEL" > "$NNN_FIFO"
|
||||||
preview_file "$(cat "$CURSEL")"
|
preview_file "$(cat "$CURSEL")"
|
||||||
preview_fifo &
|
preview_fifo &
|
||||||
|
|
|
@ -373,8 +373,10 @@ ueberzug_remove() {
|
||||||
winch_handler() {
|
winch_handler() {
|
||||||
clear
|
clear
|
||||||
kill "$(cat "$IMGPID")" "$(cat "$PAGERPID")"
|
kill "$(cat "$IMGPID")" "$(cat "$PAGERPID")"
|
||||||
|
if [ -p "$FIFO_UEBERZUG" ]; then
|
||||||
pkill -P "$$"
|
pkill -P "$$"
|
||||||
if [ -p "$FIFO_UEBERZUG" ]; then tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json & fi
|
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json &
|
||||||
|
fi
|
||||||
cat "$CURSEL" > "$NNN_FIFO"
|
cat "$CURSEL" > "$NNN_FIFO"
|
||||||
preview_file "$(cat "$CURSEL")"
|
preview_file "$(cat "$CURSEL")"
|
||||||
preview_fifo &
|
preview_fifo &
|
||||||
|
|
Loading…
Reference in a new issue