From 7949c105aa66af36af1d17d12f10a53ebc0f57f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pi=C3=B1a=20Colada?= Date: Thu, 20 May 2021 09:34:01 +0530 Subject: [PATCH] Updated Concepts (markdown) --- Concepts.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Concepts.md b/Concepts.md index add5a61..778be77 100644 --- a/Concepts.md +++ b/Concepts.md @@ -46,14 +46,21 @@ or a Bash function (with ^\\ 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