aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-06 20:31:32 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-06 20:31:32 +0530
commitabfdc76e43d896a70f00855a1efc6a1b6527b140 (patch)
treed3a2a3f45354c492ceca448bee01bc1037c64e2c /README.md
parentcd23c60f56c9bdb304dedc25d6314fbd3b27ddb5 (diff)
downloadnnn-abfdc76e43d896a70f00855a1efc6a1b6527b140.tar.gz
Instructions on how to get selection at prompt
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3838fb6..06db4db 100644
--- a/README.md
+++ b/README.md
@@ -66,6 +66,7 @@ We need contributors. Please visit the ToDo list.
- [copy file paths](#copy-file-paths)
- [selection](#selection)
- [to clipboard](#to-clipboard)
+ - [get selection manually](#get-selection-manually)
- [cd on quit](#cd-on-quit)
- [(neo)vim plugin](#neovim-plugin)
- [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"
+##### 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
To quit `nnn` and switch to the directory last opened follow the instructions below.