xolox / vim-session

Extended session management for Vim (:mksession on steroids)
http://peterodding.com/code/vim/session/
961 stars 80 forks source link

Prompt to load a locked session #165

Open kamykaze opened 7 years ago

kamykaze commented 7 years ago

User case scenario:

Feature request:

It would be nice to have a prompt like "Session is locked by another process. Do you really want to load it?"

The reason for the prompt is because when called with -c, the command isn't stored in the command history, so typing the entire line to add a ! to OpenSession is quite a hassle, specially when you have multiple vim instances per project.

143 is a related issue that I believe tries to solve this by checking the process id. But as pointed out in the thread, that would require platform specific support.