You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`load_session`| Select and load session. (Your current session won't appear on the list). |
18
-
|`load_last_session`| Removes all buffers and tries to `:source` the last saved session. Returns `true` if the session was restored and `false` otherwise. |
19
-
|`load_current_dir_session`| Removes all buffers and tries to `:source` the last saved session file of the current directory. Returns `true` if the session was restored and `false` otherwise. |
20
-
|`save_current_session`| Works like `:mksession`, but saves/creates current directory as a session in `sessions_dir`. |
21
-
|`delete_session`| Select and delete session. |
22
-
|`delete_current_dir_session`| Deletes the session associated with the current directory. |
|`load_session`| Select and load session. (Your current session won't appear on the list). |
18
+
|`load_last_session`| Removes all buffers and tries to `:source` the last saved session. Returns `true` if the session was restored and `false` otherwise. |
19
+
|`load_current_dir_session`| Removes all buffers and tries to `:source` the last saved session of the current directory. Returns `true` if the session was restored and `false` otherwise. |
20
+
|`load_git_session`| When in a git repo, removes all buffers and tries to `:source` the last saved session of the git repo root directory. Returns `true` if the session was restored and `false` otherwise. |
21
+
|`save_current_session`| Works like `:mksession`, but saves/creates current directory as a session in `sessions_dir`. |
22
+
|`delete_session`| Select and delete session. |
23
+
|`delete_current_dir_session`| Deletes the session associated with the current directory. |
23
24
24
25
When `!` is specified, the modified buffers will not be saved.
If Neovim is started without arguments the value of the autoload_mode option is used to determine which session to initially load. The following modes are supported:
0 commit comments