浏览代码

Exit once an app is found. Help, doc updates.

master
Arun Prakash Jana 8 年前
父节点
当前提交
6a9640afdf
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 4 个文件被更改,包括 8 次插入7 次删除
  1. +1
    -1
      README.md
  2. +2
    -1
      nlay
  3. +3
    -3
      nnn.1
  4. +2
    -2
      nnn.c

+ 1
- 1
README.md 查看文件

@@ -178,7 +178,7 @@ Right, Enter, l, ^M | Open file or enter dir
o | Open dir in NNN_DE_FILE_MANAGER o | Open dir in NNN_DE_FILE_MANAGER
p | Open entry in PAGER (fallback less) p | Open entry in PAGER (fallback less)
^K | Invoke file path copier ^K | Invoke file path copier
^L | Force a redraw
^L | Force a redraw, exit filter prompt
? | Toggle help screen ? | Toggle help screen
Q | Quit and change directory Q | Quit and change directory
q, ^Q | Quit q, ^Q | Quit


+ 2
- 1
nlay 查看文件

@@ -88,5 +88,6 @@ fi
for index in ${!app[@]} for index in ${!app[@]}
do do
type -P ${app[$index]} &>/dev/null && type -P ${app[$index]} &>/dev/null &&
eval ${app[$index]} ${opts[$index]} "\"$1\"" ${bg[$index]}
eval ${app[$index]} ${opts[$index]} "\"$1\"" ${bg[$index]} &&
break
done done

+ 3
- 3
nnn.1 查看文件

@@ -84,7 +84,7 @@ Open current entry in PAGER (fallback less)
.It Ic ^K .It Ic ^K
Invoke file path copier Invoke file path copier
.It Ic ^L .It Ic ^L
Force a redraw
Force a redraw, exit filter prompt
.It Ic \&? .It Ic \&?
Toggle help screen Toggle help screen
.It Ic Q .It Ic Q
@@ -136,7 +136,7 @@ instructions.
Filters support regexes to display only the matched Filters support regexes to display only the matched
entries in the current directory view. This effectively allows entries in the current directory view. This effectively allows
searching through the directory tree for a particular entry. Matching entries searching through the directory tree for a particular entry. Matching entries
are shown instantly (search-as-you-type).
are shown instantly (\fIsearch-as-you-type\fR).
.Pp .Pp
Filters do not stack on top of each other. They are applied anew Filters do not stack on top of each other. They are applied anew
every time. There are 4 ways to reset a filter: \fI^L\fR, an empty filter every time. There are 4 ways to reset a filter: \fI^L\fR, an empty filter
@@ -152,7 +152,7 @@ If
.Nm .Nm
is invoked as root the default filter will also match hidden files. is invoked as root the default filter will also match hidden files.
.Pp .Pp
In the \fInavigate-as-you-type mode\fR directories are opened in filter mode,
In the \fInavigate-as-you-type\fR mode directories are opened in filter mode,
allowing continuous navigation. Works best with the \fBarrow keys\fR. allowing continuous navigation. Works best with the \fBarrow keys\fR.
.Sh ENVIRONMENT .Sh ENVIRONMENT
The SHELL, EDITOR and PAGER environment variables take precedence The SHELL, EDITOR and PAGER environment variables take precedence


+ 2
- 2
nnn.c 查看文件

@@ -1282,7 +1282,7 @@ show_help(void)
o | Open dir in NNN_DE_FILE_MANAGER\n\ o | Open dir in NNN_DE_FILE_MANAGER\n\
p | Open entry in PAGER (fallback less)\n\ p | Open entry in PAGER (fallback less)\n\
^K | Invoke file path copier\n\ ^K | Invoke file path copier\n\
^L | Force a redraw\n\
^L | Force a redraw, exit filter prompt\n\
? | Toggle help screen\n\ ? | Toggle help screen\n\
Q | Quit and change directory\n\ Q | Quit and change directory\n\
q, ^Q | Quit\n\n\" | less"); q, ^Q | Quit\n\n\" | less");
@@ -2141,7 +2141,7 @@ main(int argc, char *argv[])
fprintf(stdout, "%s\n", VERSION); fprintf(stdout, "%s\n", VERSION);
return 0; return 0;
case 'd': case 'd':
fprintf(stderr, "option -d is deprecated, detail view mode is default now.\n");
fprintf(stderr, "Option -d is deprecated and will be removed, detail view mode is default now.\n");
break; break;
case 'h': // fallthrough case 'h': // fallthrough
default: default:


正在加载...
取消
保存