Closed eight04 closed 2 years ago
@eight04 Why would you attempt to call ProsessionDelete
when the directory no longer exists ?
@eight04 Also, the most appropriate action here is just calling :Obsession!
Why would you attempt to call
ProsessionDelete
when the directory no longer exists ?
Because you can still see that item in prosession#ListSessions
. The major problem is that it also affect prosession#ProsessionComplete
and I get lots of invalid entries when completing the :Prosession
command.
the most appropriate action here is just calling
:Obsession!
:Obsession!
can only work with the current session. It doesn't work for session files (in g:prosession_dir
) which are not activated.
@eight04 Alright that makes sense, what about a :ProsessionClean
instead to delete invalid session files ?
@eight04 Added the command :ProsessionClean
After creating a session file and removing the folder,
:ProsessionDelete
will throw anDirectory ... does not exist
error.Maybe
:ProsessionDelete
should suppress the error and delete the session file.