mirror of
https://github.com/jarun/nnn.git
synced 2024-11-23 19:31:28 +00:00
Updated Concepts (markdown)
parent
dd9ea49609
commit
95642c9e53
12
Concepts.md
12
Concepts.md
|
@ -231,10 +231,18 @@ Key <kbd>^L</kbd> clears and <kbd>Esc</kbd> exits all prompts.
|
|||
|
||||
The handy REPL command prompt <kbd>]</kbd> understands environment variables (like `$PWD`). Refer to your shell's documentation (e.g. `BASH_ENV` for bash, `~/.zshenv` for zsh) to use aliases and functions. To fuzzy-select commands from your shell history at the command prompt and issue them after editing (like [fc](http://manpages.ubuntu.com/manpages/bionic/man1/fc.1posix.html)), copy the plugin `fzhist` (as `h` maybe?) in your `$PATH`.
|
||||
|
||||
The special variable `$nnn` denotes the hovered file name. It is accessible from the command prompt or a spawned shell.
|
||||
|
||||
All binary questions are confirmed by <kbd>y</kbd> or <kbd>Y</kbd>.
|
||||
|
||||
#### Special variables
|
||||
|
||||
The following special variables can be accessed from the command prompt or a spawned shell:
|
||||
|
||||
| Variable | Description |
|
||||
|:---:| --- |
|
||||
| `$nnn` | Hovered file name in current context |
|
||||
| `$dn` | Path open in context n [n=1/2/3/4] |
|
||||
| `$fn` | File path hovered in context n [n=1/2/3/4] |
|
||||
|
||||
## Design
|
||||
|
||||
`nnn` (the core C utility) is, generally speaking, _feature-restricted_. It includes features which you _really_ need so it can remain light enough to finish your workflow accurately before your train of thought is lost.
|
||||
|
|
Loading…
Reference in a new issue