vim-workspace icon indicating copy to clipboard operation
vim-workspace copied to clipboard

Support for git branches need to be considered.

Open xbot opened this issue 8 years ago • 9 comments

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 ?

xbot avatar Aug 10 '17 02:08 xbot

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?

thaerkh avatar Aug 16 '17 03:08 thaerkh

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.

xbot avatar Aug 18 '17 05:08 xbot

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!

thaerkh avatar Aug 18 '17 07:08 thaerkh

Looking forward to that !

On 2017å¹´8月18æ—¥ +0800 PM3:49, Thaer Khawaja [email protected], wrote:

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! — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

xbot avatar Aug 18 '17 08:08 xbot

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

dbriemann avatar Jul 28 '20 12:07 dbriemann

+1 for this feature

artursmirnov avatar Oct 14 '20 09:10 artursmirnov

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.

whisperity avatar Jul 27 '21 10:07 whisperity

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 avatar Oct 23 '21 20:10 pnchinmay

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

pnchinmay avatar Nov 01 '21 12:11 pnchinmay