]> Sergey Matveev's repositories - nnn.git/commitdiff
Use 'pin' dir instead of 'mark' dir
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 1 Sep 2017 14:27:36 +0000 (19:57 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 1 Sep 2017 14:27:36 +0000 (19:57 +0530)
README.md
config.h
nnn.1
nnn.c

index a15dab69206a0a3c2991d9387862bf8f11ab2b6c..6ffe2717fbc9d1701b122b7b4aa5a16c1da3e3d7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -82,7 +82,7 @@ Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/nnn/i
 - Navigation
   - Familiar shortcuts
   - *Navigate-as-you-type* mode
-  - Bookmarks support; mark and visit a directory
+  - Bookmarks support; pin and visit a directory
   - Jump HOME or to the last visited directory (as usual!)
   - Jump to initial dir, chdir prompt, cd ..... (with . as PWD)
   - Roll-over at edges, page through entries
@@ -205,8 +205,8 @@ To cook yourself, download the [latest stable release](https://github.com/jarun/
              ^/ | Open desktop search tool
               . | Toggle hide .dot files
               b | Show bookmark prompt
-             ^B | Mark current dir
-             ^V | Go to marked dir
+             ^B | Pin current dir
+             ^V | Go to pinned dir
               c | Show change dir prompt
               d | Toggle detail view
               D | Show current file details
index 35c492d8bd01f842484cf37903ed5fa361ebc9a9..f6bb4a7df9710005956690f4ab3becaf3fb6ff44 100644 (file)
--- a/config.h
+++ b/config.h
@@ -21,7 +21,7 @@ enum action {
        SEL_CDBEGIN,
        SEL_CDLAST,
        SEL_CDBM,
-       SEL_MARK,
+       SEL_PIN,
        SEL_VISIT,
        SEL_TOGGLEDOT,
        SEL_DETAIL,
@@ -115,7 +115,7 @@ static struct key bindings[] = {
        /* Change dir using bookmark */
        { 'b',            SEL_CDBM,      "",     "" },
        /* Mark a path to visit later */
-       { CONTROL('B'),   SEL_MARK,      "",     "" },
+       { CONTROL('B'),   SEL_PIN,       "",     "" },
        /* Visit marked directory */
        { CONTROL('V'),   SEL_VISIT,     "",     "" },
        /* Toggle hide .dot files */
diff --git a/nnn.1 b/nnn.1
index 89212dc706046f86a5c85249ebdce61a220b5276..fbc788af3f03c626744101aa7d1d572f7a869c8f 100644 (file)
--- a/nnn.1
+++ b/nnn.1
@@ -62,9 +62,9 @@ Toggle hide .dot files
 .It Ic b
 Show bookmark key prompt
 .It Ic ^B
-Mark current dir
+Pin current dir
 .It Ic ^V
-Visit marked dir
+Visit pinned dir
 .It Ic c
 Show change dir prompt
 .It Ic d
diff --git a/nnn.c b/nnn.c
index ea26f70c27ddc977d174c8de9018d455063b07e4..4309a410f5d16dd5ed2e98c7f113a699edf701a8 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -1645,8 +1645,8 @@ show_help(char *path)
             "d^/ | Open desktop search tool\n"
              "e. | Toggle hide .dot files\n"
              "eb | Show bookmark prompt\n"
-            "d^B | Mark current dir\n"
-            "d^V | Go to marked dir\n"
+            "d^B | Pin current dir\n"
+            "d^V | Go to pinned dir\n"
              "ec | Show change dir prompt\n"
              "ed | Toggle detail view\n"
              "eD | Show current file details\n"
@@ -2505,7 +2505,7 @@ nochange:
                        if (cfg.filtermode)
                                presel = FILTER;
                        goto begin;
-               case SEL_MARK:
+               case SEL_PIN:
                        xstrlcpy(mark, path, PATH_MAX);
                        printmsg(mark);
                        goto nochange;