Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Check if session is already in use #34

Open
Nudin opened this issue Apr 21, 2020 · 0 comments
Open

Check if session is already in use #34

Nudin opened this issue Apr 21, 2020 · 0 comments

Comments

@Nudin
Copy link

Nudin commented Apr 21, 2020

I often run in the following issue:

  • Create a workspace sessions
  • [optionally] close vim
  • [optionally] reopen the session
  • in some other terminal open up a different file in the same folder
  • Result: vim-workspace will try to load the session in this second vim too
  • Therefore it opens all the files open in the session
  • Since all the files are already open in the first vim instance vim will ask me for each of them if I anyway want to open them even though they are in use by another vim-instance. If the session is big, this can mean I have to answer for example 15 times.

The disable_on_args option solves this issue – but then I have to remember that there is a session that I'd like to open.
I'd love to see vim-workspace to have some lock-mechanism that checks if the session is already in use.

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

No branches or pull requests

1 participant