]> Sergey Matveev's repositories - nnn.git/commitdiff
Go to start dir key is '@' now
authorArun Prakash Jana <engineerarun@gmail.com>
Tue, 12 Mar 2019 11:13:17 +0000 (16:43 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Tue, 12 Mar 2019 11:14:58 +0000 (16:44 +0530)
README.md
src/nnn.c
src/nnn.h

index 3cc7dadffc7313c20cd74fc403a6f1e1ccf16cd0..6b1c3b250c7f1f092e2a05619075afa3697042f9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -81,7 +81,7 @@ It runs on Linux, macOS, Raspberry Pi, BSD, Cygwin, Linux subsystem for Windows
   - Contexts (_aka_ tabs _aka_ workspaces)
   - *Navigate-as-you-type* with auto-select directory
   - Bookmarks
-  - Familiar, easy shortcuts (arrows, `~`, `-`, `&`)
+  - Familiar, easy shortcuts (arrows, `~`, `-`, `@`)
   - Pin and visit a directory
 - Sorting
   - Directories always listed on top
@@ -196,7 +196,7 @@ Option completion scripts for Bash, Fish and Zsh can be found in respective subd
 #### Cmdline options
 
 ```
-usage: nnn [-b key] [-C] [-e] [-i] [-l] [-n]
+usage: nnn [-b key] [-d] [-e] [-i] [-l] [-n]
            [-p file] [-s] [-S] [-v] [-w] [-h] [PATH]
 
 The missing terminal file manager for X.
@@ -228,7 +228,7 @@ Press <kbd>?</kbd> in `nnn` to see the list anytime.
           ↑ k  Up          PgUp ^U  Scroll up
           ↓ j  Down        PgDn ^D  Scroll down
           ← h  Parent dir        ~  Go HOME
-        ↵ → l  Open file/dir     &  Start dir
+        ↵ → l  Open file/dir     @  Start dir
     Home g ^A  First entry       -  Last visited dir
      End G ^E  Last entry        .  Toggle show hidden
             /  Filter       Ins ^T  Toggle nav-as-you-type
@@ -271,7 +271,7 @@ The Leader key (<kbd>`</kbd> or <kbd>^/</kbd>) provides a powerful multi-functio
 | key | Go to bookmarked location |
 | <kbd>~</kbd> | Go to HOME directory |
 | <kbd>-</kbd> | Go to last visited directory |
-| <kbd>&</kbd> | Go to start directory |
+| <kbd>@</kbd> | Go to start directory |
 | <kbd>q</kbd> | Quit context |
 
 #### Contexts
index b5b4e080dc824208988205919e284644727bdc85..0e393429950a487da1ba28589f388ffd3b4fb6b4 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2361,7 +2361,7 @@ static bool show_help(const char *path)
                "a↑ k  Up          PgUp ^U  Scroll up\n"
                "a↓ j  Down        PgDn ^D  Scroll down\n"
                "a← h  Parent dir        ~  Go HOME\n"
-             "8↵ → l  Open file/dir     &  Start dir\n"
+             "8↵ → l  Open file/dir     @  Start dir\n"
          "4Home g ^A  First entry       -  Last visited dir\n"
           "5End G ^E  Last entry        .  Toggle show hidden\n"
                  "c/  Filter       Ins ^T  Toggle nav-as-you-type\n"
@@ -3130,7 +3130,7 @@ nochange:
                        case 'q': // fallthrough
                        case '~': // fallthrough
                        case '-': // fallthrough
-                       case '&':
+                       case '@':
                                presel = fd;
                                goto nochange;
                        case '>': // fallthrough
index dadbde6ff049ad8b3a7a17ac21a14e640289daf8..3c4b909f3943bcdd989cd21bbadc68d3a545b74b 100644 (file)
--- a/src/nnn.h
+++ b/src/nnn.h
@@ -138,7 +138,7 @@ static struct key bindings[] = {
        /* HOME */
        { '~',            SEL_CDHOME },
        /* Initial directory */
-       { '&',            SEL_CDBEGIN },
+       { '@',            SEL_CDBEGIN },
        /* Last visited dir */
        { '-',            SEL_CDLAST },
        /* Visit marked directory */