]> Sergey Matveev's repositories - nnn.git/commitdiff
Detect key collisions: make clear everywhere that it exits afterwards.
authorpataquets <amontero@tinet.org>
Mon, 12 Sep 2022 21:04:54 +0000 (23:04 +0200)
committerpataquets <amontero@tinet.org>
Mon, 12 Sep 2022 21:04:54 +0000 (23:04 +0200)
misc/auto-completion/fish/nnn.fish
misc/auto-completion/zsh/_nnn
nnn.1
src/nnn.c

index d195088eee4bbb4d9c87328e13a76ce63a59eaef..07a0541835a7b67449ab2b617c9e222be32265e3 100644 (file)
@@ -26,7 +26,7 @@ complete -c nnn -s g    -d 'regex filters'
 complete -c nnn -s H    -d 'show hidden files'
 complete -c nnn -s i    -d 'show current file info'
 complete -c nnn -s J    -d 'no auto-advance on selection'
-complete -c nnn -s K    -d 'detect key collision'
+complete -c nnn -s K    -d 'detect key collision and exit'
 complete -c nnn -s l -r -d 'lines to move per scroll'
 complete -c nnn -s n    -d 'start in type-to-nav mode'
 complete -c nnn -s o    -d 'open files only on Enter'
index 55eadab1cc6d50b0fb7c9d98030e8256a5edad7b..007e8f18b1689413284cf56eeb02ce7cc7d67816 100644 (file)
@@ -24,7 +24,7 @@ args=(
     '(-H)-H[show hidden files]'
     '(-i)-i[show current file info]'
     '(-J)-J[no auto-advance on selection]'
-    '(-K)-K[detect key collision]'
+    '(-K)-K[detect key collision and exit]'
     '(-l)-l[lines to move per scroll]:val'
     '(-n)-n[start in type-to-nav mode]'
     '(-o)-o[open files only on Enter]'
diff --git a/nnn.1 b/nnn.1
index c043496e97e746fa064d249704f8d09894f3b911..7b4edbb93c3b288f49717d61d1971334c4632ea4 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -95,7 +95,7 @@ supports the following options:
         (eg. selecting an entry will no longer move cursor to the next entry)
 .Pp
 .Fl K
-        test for keybind collision
+        test for keybind collision and exit
 .Pp
 .Fl "l val"
         number of lines to move per mouse wheel scroll
index 098c564ac3fb70c9a113bb1c0d75f865c22b909e..58dd15b81ab3675f6b63b4f1284dc2700093c6a7 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -8146,7 +8146,7 @@ static void usage(void)
                " -H      show hidden files\n"
                " -i      show current file info\n"
                " -J      no auto-advance on selection\n"
-               " -K      detect key collision\n"
+               " -K      detect key collision and exit\n"
                " -l val  set scroll lines\n"
                " -n      type-to-nav mode\n"
                " -o      open files only on Enter\n"