mirror of
https://github.com/jarun/nnn.git
synced 2024-11-30 14:51:28 +00:00
Updated Concepts (markdown)
parent
70e92f8f4a
commit
7949c105aa
13
Concepts.md
13
Concepts.md
|
@ -46,14 +46,21 @@ or a Bash function (with <kbd>^\\</kbd> as dvtm modifier) to handle arguments:
|
||||||
|
|
||||||
## Sessions
|
## Sessions
|
||||||
|
|
||||||
Sessions are a way to save and restore states of work. A session stores the settings and contexts. All the session files are located in the `${XDG_CONFIG_HOME:-$HOME/.config}/nnn/sessions` directory by the session name.
|
Sessions are a way to save and restore states of work. A session stores the settings and contexts.
|
||||||
|
|
||||||
Sessions can be loaded dynamically at runtime or with a [program option](https://github.com/jarun/nnn/wiki/Usage#program-options).
|
Sessions can be loaded dynamically at runtime or with a [program option](https://github.com/jarun/nnn/wiki/Usage#program-options).
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
|
|
||||||
1. When a session is loaded dynamically, the last working session is saved automatically to a dedicated -- "last session" -- session file. The "last session" is also used in persistent session mode.
|
1. When a session is loaded dynamically, the last working state is saved automatically to a dedicated -- "auto session" -- session file. The "auto session" is also used in persistent session mode if no session is loaded explicitly.
|
||||||
2. Listing input stream has a higher priority to session options (`-s`/`-S`). Sessions can be loaded explicitly at runtime. Session option _restore_ would restore the persistent session at runtime.
|
2. Listing input stream has a higher priority to session options (`-s`/`-S`). Sessions can be loaded explicitly at runtime. Session option _restore_ would restore the "auto session" at runtime.
|
||||||
|
3. The persistent session option is global. If it is used, the last active session will be updated with the final state at program quit.
|
||||||
|
|
||||||
|
All the session files are located by session name in the directory
|
||||||
|
|
||||||
|
`${XDG_CONFIG_HOME:-$HOME/.config}/nnn/sessions`
|
||||||
|
|
||||||
|
"@" is the "auto session" file.
|
||||||
|
|
||||||
## Filters
|
## Filters
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue