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

Support for git branches need to be considered. #6

Open
xbot opened this issue Aug 10, 2017 · 9 comments
Open

Support for git branches need to be considered. #6

xbot opened this issue Aug 10, 2017 · 9 comments

Comments

@xbot
Copy link

xbot commented Aug 10, 2017

Placing .session.vim and .undodir under the current path is easy to manage sessions, but all git branches have to share the same session, which is not comfortable.

Maybe putting all sessions into a specialized dir is better ?

@thaerkh
Copy link
Owner

thaerkh commented Aug 16, 2017

The intent behind co-locating these artifacts with a given folder/repo is to avoid orphaned data and to emphasize the scope to a working directory. There are a few measures in place that would make something like transitions between branches fairly seamless. so can you expand on what you mean by "not comfortable", and what problem it is you're wanting to solve by having a specialised directory?

@xbot
Copy link
Author

xbot commented Aug 18, 2017

I understand the intention. What I said "not comfortable" is that when switching from this branch to another, I want to load the workspace of that branch, not the one of the former branch.

@thaerkh
Copy link
Owner

thaerkh commented Aug 18, 2017

Interesting idea, that makes sense - so essentially git support for sessions that auto-reload based on current branch. I'll keep this issue open as a feature request and will work on it the next opportunity I have. Thanks for your feedback!

@xbot
Copy link
Author

xbot commented Aug 18, 2017 via email

@dbriemann
Copy link

Sorry to dig this up after almost 3 years but since the issue is still open... is this still on the "roadmap"?

@artursmirnov
Copy link

+1 for this feature

@whisperity
Copy link

Bumpity!

I just got this madness after switching branches and reopening Vim, it took a lot of time to ENTER through...
Loads of error messages about broken workspace/session file configuring non-existent folds in non-existent files.

@pnchinmay
Copy link

pnchinmay commented Oct 23, 2021

Bumpity!

I just got this madness after switching branches and reopening Vim, it took a lot of time to ENTER through... Loads of error messages about broken workspace/session file configuring non-existent folds in non-existent files.

Does this go away after running :ToggleWorkspace ?
I have been getting similar errors for nerdtree and rnvimr (ranger) plugins buffers ? I don't know how to deal with those. Any help would be greatly appreciated.

@pnchinmay
Copy link

never mind, got it all worked out
No errors for now
vim-workspace is absolutely great, far better than its alternatives

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

6 participants