mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Rename config env var
This commit is contained in:
parent
5df41255b2
commit
08520ac80e
|
@ -536,7 +536,7 @@ By default in OpenBSD & FreeBSD, `stty` maps <kbd>^Y</kbd> to `DSUSP`. This mean
|
||||||
|
|
||||||
In order to disable opening files on accidental navigation key (<kbd>→</kbd> or <kbd>l</kbd>) press:
|
In order to disable opening files on accidental navigation key (<kbd>→</kbd> or <kbd>l</kbd>) press:
|
||||||
|
|
||||||
export DISABLE_FILE_OPEN_ON_NAV=1
|
export NNN_NO_FILE_OPEN_ON_NAV=1
|
||||||
|
|
||||||
Use <kbd>Enter</kbd> to open files.
|
Use <kbd>Enter</kbd> to open files.
|
||||||
|
|
||||||
|
|
4
nnn.1
4
nnn.1
|
@ -305,9 +305,9 @@ files.
|
||||||
export NNN_NO_AUTOSELECT=1
|
export NNN_NO_AUTOSELECT=1
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
\fBDISABLE_FILE_OPEN_ON_NAV:\fR disable file open on \fBRight\fR or \fBl\fR keys (\fBEnter\fR opens files).
|
\fBNNN_NO_FILE_OPEN_ON_NAV:\fR disable file open on \fBRight\fR or \fBl\fR keys (\fBEnter\fR opens files).
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
export DISABLE_FILE_OPEN_ON_NAV=1
|
export NNN_NO_FILE_OPEN_ON_NAV=1
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.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.
|
\fBNNN_RESTRICT_0B:\fR restrict opening 0-byte files due to unexpected behaviour; use \fIedit\fR or \fIopen with\fR to open the file.
|
||||||
|
|
|
@ -2161,8 +2161,8 @@ static bool show_help(char *path)
|
||||||
dprintf(fd, "NNN_SHOW_HIDDEN: 1\n");
|
dprintf(fd, "NNN_SHOW_HIDDEN: 1\n");
|
||||||
if (getenv("NNN_NO_AUTOSELECT"))
|
if (getenv("NNN_NO_AUTOSELECT"))
|
||||||
dprintf(fd, "NNN_NO_AUTOSELECT: 1\n");
|
dprintf(fd, "NNN_NO_AUTOSELECT: 1\n");
|
||||||
if (getenv("DISABLE_FILE_OPEN_ON_NAV"))
|
if (getenv("NNN_NO_FILE_OPEN_ON_NAV"))
|
||||||
dprintf(fd, "DISABLE_FILE_OPEN_ON_NAV: 1\n");
|
dprintf(fd, "NNN_NO_FILE_OPEN_ON_NAV: 1\n");
|
||||||
|
|
||||||
dprintf(fd, "\n");
|
dprintf(fd, "\n");
|
||||||
|
|
||||||
|
@ -3778,7 +3778,7 @@ int main(int argc, char *argv[])
|
||||||
cfg.autoselect = 0;
|
cfg.autoselect = 0;
|
||||||
|
|
||||||
/* Disable opening files on right arrow and `l` */
|
/* Disable opening files on right arrow and `l` */
|
||||||
if (getenv("DISABLE_FILE_OPEN_ON_NAV"))
|
if (getenv("NNN_NO_FILE_OPEN_ON_NAV"))
|
||||||
cfg.nonavopen = 1;
|
cfg.nonavopen = 1;
|
||||||
|
|
||||||
/* Restrict opening of 0-byte files */
|
/* Restrict opening of 0-byte files */
|
||||||
|
|
Loading…
Reference in a new issue