From e2fae851c3f54f956cedd8e119df41d0496cee49 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 1 Sep 2017 19:57:36 +0530 Subject: [PATCH] Use 'pin' dir instead of 'mark' dir --- README.md | 6 +++--- config.h | 4 ++-- nnn.1 | 4 ++-- nnn.c | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a15dab69..6ffe2717 100644 --- 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 diff --git a/config.h b/config.h index 35c492d8..f6bb4a7d 100644 --- 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 89212dc7..fbc788af 100644 --- 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 ea26f70c..4309a410 100644 --- 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;