mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Go to start dir key is '@' now
This commit is contained in:
parent
69aeeb51d2
commit
54c89ca2a1
|
@ -81,7 +81,7 @@ It runs on Linux, macOS, Raspberry Pi, BSD, Cygwin, Linux subsystem for Windows
|
||||||
- Contexts (_aka_ tabs _aka_ workspaces)
|
- Contexts (_aka_ tabs _aka_ workspaces)
|
||||||
- *Navigate-as-you-type* with auto-select directory
|
- *Navigate-as-you-type* with auto-select directory
|
||||||
- Bookmarks
|
- Bookmarks
|
||||||
- Familiar, easy shortcuts (arrows, `~`, `-`, `&`)
|
- Familiar, easy shortcuts (arrows, `~`, `-`, `@`)
|
||||||
- Pin and visit a directory
|
- Pin and visit a directory
|
||||||
- Sorting
|
- Sorting
|
||||||
- Directories always listed on top
|
- 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
|
#### 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]
|
[-p file] [-s] [-S] [-v] [-w] [-h] [PATH]
|
||||||
|
|
||||||
The missing terminal file manager for X.
|
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
|
↑ k Up PgUp ^U Scroll up
|
||||||
↓ j Down PgDn ^D Scroll down
|
↓ j Down PgDn ^D Scroll down
|
||||||
← h Parent dir ~ Go HOME
|
← 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
|
Home g ^A First entry - Last visited dir
|
||||||
End G ^E Last entry . Toggle show hidden
|
End G ^E Last entry . Toggle show hidden
|
||||||
/ Filter Ins ^T Toggle nav-as-you-type
|
/ 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 |
|
| key | Go to bookmarked location |
|
||||||
| <kbd>~</kbd> | Go to HOME directory |
|
| <kbd>~</kbd> | Go to HOME directory |
|
||||||
| <kbd>-</kbd> | Go to last visited 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 |
|
| <kbd>q</kbd> | Quit context |
|
||||||
|
|
||||||
#### Contexts
|
#### Contexts
|
||||||
|
|
|
@ -2361,7 +2361,7 @@ static bool show_help(const char *path)
|
||||||
"a↑ k Up PgUp ^U Scroll up\n"
|
"a↑ k Up PgUp ^U Scroll up\n"
|
||||||
"a↓ j Down PgDn ^D Scroll down\n"
|
"a↓ j Down PgDn ^D Scroll down\n"
|
||||||
"a← h Parent dir ~ Go HOME\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"
|
"4Home g ^A First entry - Last visited dir\n"
|
||||||
"5End G ^E Last entry . Toggle show hidden\n"
|
"5End G ^E Last entry . Toggle show hidden\n"
|
||||||
"c/ Filter Ins ^T Toggle nav-as-you-type\n"
|
"c/ Filter Ins ^T Toggle nav-as-you-type\n"
|
||||||
|
@ -3130,7 +3130,7 @@ nochange:
|
||||||
case 'q': // fallthrough
|
case 'q': // fallthrough
|
||||||
case '~': // fallthrough
|
case '~': // fallthrough
|
||||||
case '-': // fallthrough
|
case '-': // fallthrough
|
||||||
case '&':
|
case '@':
|
||||||
presel = fd;
|
presel = fd;
|
||||||
goto nochange;
|
goto nochange;
|
||||||
case '>': // fallthrough
|
case '>': // fallthrough
|
||||||
|
|
|
@ -138,7 +138,7 @@ static struct key bindings[] = {
|
||||||
/* HOME */
|
/* HOME */
|
||||||
{ '~', SEL_CDHOME },
|
{ '~', SEL_CDHOME },
|
||||||
/* Initial directory */
|
/* Initial directory */
|
||||||
{ '&', SEL_CDBEGIN },
|
{ '@', SEL_CDBEGIN },
|
||||||
/* Last visited dir */
|
/* Last visited dir */
|
||||||
{ '-', SEL_CDLAST },
|
{ '-', SEL_CDLAST },
|
||||||
/* Visit marked directory */
|
/* Visit marked directory */
|
||||||
|
|
Loading…
Reference in a new issue