aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.1
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-11 18:54:54 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-01-11 21:43:57 +0530
commit5df41255b293d20ea5f1a54ba1950ff483c66187 (patch)
tree277d3477d65685f63bde92ca0d27ca4dd8b3c7e4 /nnn.1
parent625f2f88309c86395f902cb7e6e73b41c6238813 (diff)
downloadnnn-5df41255b293d20ea5f1a54ba1950ff483c66187.tar.gz
Fix #187
It seems the behaviour of the default opener (xdg-open) varies across platforms and environments. Details are documented in the issue. To prevent an empty file from being accidentally opened leading to unexpected behaviour, we are adding a guard with the message that the empty file should be opened using edit or open option.
Diffstat (limited to 'nnn.1')
-rw-r--r--nnn.15
1 files changed, 5 insertions, 0 deletions
diff --git a/nnn.1 b/nnn.1
index f78cd99..4a824a1 100644
--- a/nnn.1
+++ b/nnn.1
@@ -309,6 +309,11 @@ files.
.Bd -literal
export DISABLE_FILE_OPEN_ON_NAV=1
.Ed
+.Pp
+\fBNNN_RESTRICT_0B:\fR restrict opening 0-byte files due to unexpected behaviour; use \fIedit\fR or \fIopen with\fR to open the file.
+.Bd -literal
+ export NNN_RESTRICT_0B=1
+.Ed
.Sh KNOWN ISSUES
If you are using urxvt you might have to set backspace key to DEC.
.Sh AUTHORS