aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-06 00:33:46 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-05-06 01:03:10 +0530
commit97df7df2972a8be54ccc68cfa74df9416378a6f1 (patch)
treec4bc9f4312dbdcddf6dcf66c4d9aa88a6a7aa4d0
parentf47700a609cf1e17c9a796c26da3885c880255d4 (diff)
downloadnnn-97df7df2972a8be54ccc68cfa74df9416378a6f1.tar.gz
Minor previewer plugin update, docs update
-rw-r--r--README.md4
-rwxr-xr-xplugins/preview-tabbed6
2 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md
index 19a6c3f..f5b50ff 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 <kbd>h</kbd> <kbd>j</kbd> <kbd>k</kbd> <kbd>l</kbd>),
- [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 654ffca..db94fdc 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