mirror of
https://github.com/jarun/nnn.git
synced 2024-11-30 14:51:28 +00:00
Updated Concepts (markdown)
parent
275ce1d775
commit
c5bd60766b
|
@ -229,6 +229,8 @@ The prompts (except the filter prompt) support readline-like command-line shortc
|
||||||
|
|
||||||
Key <kbd>^L</kbd> clears and <kbd>Esc</kbd> exits all prompts.
|
Key <kbd>^L</kbd> clears and <kbd>Esc</kbd> exits all prompts.
|
||||||
|
|
||||||
|
#### Native command prompt
|
||||||
|
|
||||||
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 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 native command prompt remembers only the last executed command in the current session. To access and use the shell's history add a shell function similar to:
|
The native command prompt remembers only the last executed command in the current session. To access and use the shell's history add a shell function similar to:
|
||||||
|
@ -260,7 +262,7 @@ Selection can be accessed from the command prompt:
|
||||||
|
|
||||||
| Variable | Substitution |
|
| Variable | Substitution |
|
||||||
|:---:| --- |
|
|:---:| --- |
|
||||||
| `%j` | repeat the command with `%j` substituted by each selected file path (all occurrances of`%j` are substituted) |
|
| `%j` | repeat cmd with all `%j` substituted by each selected file path |
|
||||||
| `%J` | run the command only once with the last `%J` substituted by all selected file paths |
|
| `%J` | run the command only once with the last `%J` substituted by all selected file paths |
|
||||||
|
|
||||||
E.g.
|
E.g.
|
||||||
|
|
Loading…
Reference in a new issue