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
Sessions don't restore tab-local directories #6678
Comments
cc @HiPhish |
I'll look into it over the weekend. My uneducated guess is that the file format of sessions does not store the working directory of tab pages since Vim does not have that information. Adding that information would (potentially) make sessions incompatible between Vim and Nvim, but I guess that's not a concern for us? |
you can wrap it into |
Vim already has problems with portability of session files if you create one in a more featured Vim and then try to use it in a less featured Vim. Using |
Do you pointers as to where sessions are written and read? Otherwise I would have to go source-code diving blindly. |
|
OK, found the function. How do I do |
You don't. A session file is just a bunch of normal Vim commands, so you just wrap the |
@HiPhish *ping* |
Sorry, I haven't forgotten, I just haven't yet had the time 😞 |
I have found the function of interest, it's
There is this for-loop in the function: tab_firstwin = firstwin; /* first window in tab page "tabnr" */
tab_topframe = topframe;
for (tabnr = 1;; ++tabnr) { This seems like an appropriate place since it loop through all the tab pages (there is a check at the bottom for |
Whatever most closely matches the user expectations w.r.t. how tcd works.
Seems reasonable. Is |
Yes, that one is handled by the |
PR is up as RFC: #6859 |
Window-local directories work already. Shouldn't be too hard to add tab-local support as well, if
&sessionoptions
containstabpages
.The text was updated successfully, but these errors were encountered: