Updated Concepts (markdown)

Piña Colada 2021-05-20 09:34:01 +05:30
parent 70e92f8f4a
commit 7949c105aa
1 changed files with 10 additions and 3 deletions

@ -46,14 +46,21 @@ or a Bash function (with <kbd>^\\</kbd> as dvtm modifier) to handle arguments:
## 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).
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.
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.
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 "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