vim-obsession icon indicating copy to clipboard operation
vim-obsession copied to clipboard

Obsession not work automatically when attached to a existing session.

Open thepenguinthatwants opened this issue 6 years ago • 4 comments

Hi Tim!

When I open a session and do changes and then pause Obsession it doesnt seem to save anything. This can be tested by opening the session after layout changes.

But when I use :Obsession command twice so it says that it stops and track again.. and do some changes and then :Obsession to pause.. it actually saves the changes such as layout etc.

I use

:source ~/.config/nvim/sessions/test

to open the session up.

Not sure how to get logs for this behaviour.

thepenguinthatwants avatar Jul 27 '19 20:07 thepenguinthatwants

Was ~/.config/nvim/sessions/test originally created by Obsession?

tpope avatar Jul 27 '19 21:07 tpope

Yeah I used the command like this.

:Obsession ~/.config/nvim/sessions/test

My NVIM version is 0.3.8

thepenguinthatwants avatar Jul 28 '19 10:07 thepenguinthatwants

If you call :Obsession to pause, it stops saving future changes, but the current state is still saved. Does that explain things?

tpope avatar Jul 28 '19 23:07 tpope

So when I load a session which was started with obsession and then run :Obsession to pause it doesnt save the current state.

But when I run :Obsession again and then :Obsession to pause then it saved the changes that were make after the first stop and start. So I mean even thought it is "running" from starting session it still doesnt save it before stopping obsession and starting again and then stop.

thepenguinthatwants avatar Jul 29 '19 12:07 thepenguinthatwants