Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt to load a locked session #165

Open
kamykaze opened this issue Jun 29, 2017 · 0 comments
Open

Prompt to load a locked session #165

kamykaze opened this issue Jun 29, 2017 · 0 comments

Comments

@kamykaze
Copy link

User case scenario:

  • working on a project, session saved as 'myproject'
  • to restore the project the next day, I use tmuxinator to reload all my environments, server scripts, etc., including 'vi -c "OpenSession myproject" '
  • this works fine if vim was properly quit, but throws a warning when the session is locked due to a crash

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant