]> Sergey Matveev's repositories - nnn.git/commitdiff
Exit once an app is found. Help, doc updates.
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 6 Jun 2017 16:07:16 +0000 (21:37 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 6 Jun 2017 18:02:40 +0000 (23:32 +0530)
README.md
nlay
nnn.1
nnn.c

index 1d62caf27c06f1a66ae1a4baef669aed13c159d9..651d953e2d41bc0680016abff97bd857f093d63b 100644 (file)
--- a/README.md
+++ b/README.md
@@ -178,7 +178,7 @@ Right, Enter, l, ^M | Open file or enter dir
                   o | Open dir in NNN_DE_FILE_MANAGER
                   p | Open entry in PAGER (fallback less)
                  ^K | Invoke file path copier
-                 ^L | Force a redraw
+                 ^L | Force a redraw, exit filter prompt
                   ? | Toggle help screen
                   Q | Quit and change directory
               q, ^Q | Quit
diff --git a/nlay b/nlay
index 53d89e32d0db24854d8140381f87d3addd8ad6fe..437dd7e8b0f65321f27a5dabe485f7516565da97 100755 (executable)
--- a/nlay
+++ b/nlay
@@ -88,5 +88,6 @@ fi
 for index in ${!app[@]}
 do
     type -P ${app[$index]} &>/dev/null &&
-    eval ${app[$index]} ${opts[$index]} "\"$1\"" ${bg[$index]}
+    eval ${app[$index]} ${opts[$index]} "\"$1\"" ${bg[$index]} &&
+    break
 done
diff --git a/nnn.1 b/nnn.1
index d929fdce8c11ea67f28c7edd979a9182be986aa9..a80bef71783592a7cdf1181eeaddf1f8dd1512c4 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -84,7 +84,7 @@ Open current entry in PAGER (fallback less)
 .It Ic ^K
 Invoke file path copier
 .It Ic ^L
-Force a redraw
+Force a redraw, exit filter prompt
 .It Ic \&?
 Toggle help screen
 .It Ic Q
@@ -136,7 +136,7 @@ instructions.
 Filters support regexes to display only the matched
 entries in the current directory view. This effectively allows
 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
 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
@@ -152,7 +152,7 @@ If
 .Nm
 is invoked as root the default filter will also match hidden files.
 .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.
 .Sh ENVIRONMENT
 The SHELL, EDITOR and PAGER environment variables take precedence
diff --git a/nnn.c b/nnn.c
index d2740aba31ae4070941418309f88ad7dfe573b6a..5cf5d2523dfc9b9748f04f64f451ba7ea6631596 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -1282,7 +1282,7 @@ show_help(void)
                     o | Open dir in NNN_DE_FILE_MANAGER\n\
                     p | Open entry in PAGER (fallback less)\n\
                    ^K | Invoke file path copier\n\
-                   ^L | Force a redraw\n\
+                   ^L | Force a redraw, exit filter prompt\n\
                     ? | Toggle help screen\n\
                     Q | Quit and change directory\n\
                q, ^Q | Quit\n\n\" | less");
@@ -2141,7 +2141,7 @@ main(int argc, char *argv[])
                        fprintf(stdout, "%s\n", VERSION);
                        return 0;
                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;
                case 'h': // fallthrough
                default: