From: Arun Prakash Jana Date: Tue, 5 May 2020 19:03:46 +0000 (+0530) Subject: Minor previewer plugin update, docs update X-Git-Tag: v3.2~60 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=97df7df2972a8be54ccc68cfa74df9416378a6f1;p=nnn.git Minor previewer plugin update, docs update --- diff --git a/README.md b/README.md index 19a6c3fe..f5b50ff9 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,8 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw - By file name, access/change/mod (default) time, size, extension - Reverse sort - Mimes - - Open with desktop opener or specify a custom app + - Open with desktop opener or specify a custom opener + - Preview files with FIFO-based previewer - Create, list, extract, mount (FUSE based) archives - Option to open all text files in EDITOR - Information @@ -134,6 +135,7 @@ Don't memorize! Arrows (or h j k l), - [0xACE](https://github.com/0xACE) - [Anna Arad](https://github.com/annagrram) - [KlzXS](https://github.com/KlzXS) +- [leovilok](https://github.com/leovilok) - [Maxim Baz](https://github.com/maximbaz) - and other contributors diff --git a/plugins/preview-tabbed b/plugins/preview-tabbed index 654ffca7..db94fdca 100755 --- a/plugins/preview-tabbed +++ b/plugins/preview-tabbed @@ -5,7 +5,7 @@ # Note: This plugin needs a "NNN_FIFO" to work. See man. # # Shell: Bash (job control is weakly specified in POSIX) -# +# # Dependencies: # - tabbed (https://tools.suckless.org/tabbed): xembed host # - xterm (or urxvt or st) : xembed client for text-based preview @@ -45,6 +45,8 @@ # # [1]: http://tools.suckless.org/tabbed/ # [2]: https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html +# +# Author: leovilok XDOTOOL_TIMEOUT=2 @@ -109,7 +111,7 @@ previewer_loop () { # (uncomment to use): #xdotool behave "$XID" focus windowactivate "$MAINWINDOW" & - while read -r FILE ; do + while read -r FILE ; do jobs # Get rid of the "Completed" entries