mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Instructions on how to get selection at prompt
This commit is contained in:
parent
cd23c60f56
commit
abfdc76e43
11
README.md
11
README.md
|
@ -66,6 +66,7 @@ We need contributors. Please visit the ToDo list.
|
||||||
- [copy file paths](#copy-file-paths)
|
- [copy file paths](#copy-file-paths)
|
||||||
- [selection](#selection)
|
- [selection](#selection)
|
||||||
- [to clipboard](#to-clipboard)
|
- [to clipboard](#to-clipboard)
|
||||||
|
- [get selection manually](#get-selection-manually)
|
||||||
- [cd on quit](#cd-on-quit)
|
- [cd on quit](#cd-on-quit)
|
||||||
- [(neo)vim plugin](#neovim-plugin)
|
- [(neo)vim plugin](#neovim-plugin)
|
||||||
- [run custom scripts](#run-custom-scripts)
|
- [run custom scripts](#run-custom-scripts)
|
||||||
|
@ -429,6 +430,16 @@ To inform `nnn` of the executable copier script location:
|
||||||
|
|
||||||
export NNN_COPIER="/path/to/copier.sh"
|
export NNN_COPIER="/path/to/copier.sh"
|
||||||
|
|
||||||
|
##### get selection manually
|
||||||
|
|
||||||
|
To get a space-separated list of the file paths in selection, say at the command-prompt:
|
||||||
|
|
||||||
|
cat ~/.nnncp | xargs -0 echo
|
||||||
|
|
||||||
|
To get the list in a file:
|
||||||
|
|
||||||
|
cat ~/.nnncp | xargs -0 echo > out.txt
|
||||||
|
|
||||||
#### cd on quit
|
#### cd on quit
|
||||||
|
|
||||||
To quit `nnn` and switch to the directory last opened follow the instructions below.
|
To quit `nnn` and switch to the directory last opened follow the instructions below.
|
||||||
|
|
Loading…
Reference in a new issue