1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-22 15:20:59 +03:00

Updated Concepts (markdown)

Piña Colada 2021-05-07 08:55:52 +05:30
parent ae519e5325
commit 8851a454c6

@ -143,13 +143,15 @@ A selection can be edited, copied, moved, removed, archived or linked. Example w
- navigate to a target directory - navigate to a target directory
- use <kbd>^P</kbd> (cp) or <kbd>^V</kbd> (mv) to copy or move the selected files - use <kbd>^P</kbd> (cp) or <kbd>^V</kbd> (mv) to copy or move the selected files
Absolute paths of the selected files are copied to `.selection` file in the config directory. The selection file is shared between multiple program instances. The most recent instance writing to the file overwrites the entries from earlier writes. If you have 2 instances of `nnn` _open_ in 2 panes of a terminal multiplexer, you can select in one pane and use the selection (e.g. to copy or move) in the other pane (if the instance doesn't have any local selection already). Absolute paths of the selected files are copied to `.selection` file in the config directory. The selection file is shared between multiple program instances. Selection from multiple instances are not merged. The last instance writing to the file overwrites earlier contents. If you have 2 instances of `nnn` _open_ in 2 panes of a terminal multiplexer, you can select in one pane and use the selection in the other pane.
`nnn` clears the selection after an operation with the selection. `nnn` clears the selection after an operation with the selection. Plugins are allowed to define the behaviour individually.
`nnn` doesn't match directory entries for selected files after a redraw or after the user navigates away from the directory. An attempt to do so will increase memory consumption and processing significantly as `nnn` allows selection across directories. However, the selection can be edited in the instance of `nnn` where the files were selected.
#### Editing selection #### Editing selection
To edit the selection use the _edit selection_ key. Use this key to remove a file from selection after you navigate away from its directory or remove duplicates. Editing doesn't end the selection mode. You can add more files to the selection and edit the list again. If no file is selected in the current session, this option attempts to list the selection file. To edit the selection use the _edit selection_ key. Use this key to remove a file from selection after you navigate away from its directory or to remove duplicates. Editing doesn't end the selection mode. You can add more files to the selection and edit the list again. If no file is selected in the current session, this option attempts to list the selection file.
#### File paths in selection to system clipboard #### File paths in selection to system clipboard