Skip to content

Not able to load session with mini.sessions #1289

Closed Answered by echasnovski
rbhanot4739 asked this question in Q&A
Discussion options

You must be logged in to vote

Everything seems to be correctly set up, just a bit of workflow is missing.

There is no detected sessions because there was none written yet. You have to explicitly create (i.e. write) at least one in order for autoread to pick it up. In other words:

  • Open Neovim with a bunch of files. This does not yet constitutes a "current session".
  • Execute :lua MiniSessions.write('my-session') (choose your preferred session name). This session now constitutes a "current session".
  • You can open another set of files to see the effect of the default autowrite = true.
  • Close Neovim and reopen. It should now load the previous set of files including the ones opened after MiniSessions.write() call.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rbhanot4739
Comment options

@echasnovski
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants