-
-
Notifications
You must be signed in to change notification settings - Fork 53
[BUG] Dashes in session path turns into backslashes #242
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
Comments
I could not reproduce on my OS X Ventura (NVIM version is 0.9.1 too). Seems to be a windows specific bug. |
Yeah. The reality is I don't really officially support Windows with auto-session. All Windows support has been pretty much added by the community, which is amazing to see! Hopefully someone can dive into this one soon! |
#315 improves this case so while it's still converting dashes to backslashes, it will load the session when selected. For example, I have a directory called "dash-test" and the session file is rendered as "dash\test": |
@rmagatti what about url encoding the filename of the session? Then we could use the same encoding scheme on all platforms and have it be fully reversible while only being slightly more cumbersome to look at via |
Actually, now that I think about it, I wonder if it's possible to make it work by being careful/consistent with how paths are treated. I'll look into this a bit more. |
Urlencode would be good, I do remember considering that at the time but don't quite remember why I didn't go with that. Perhaps there wasn't a good option to do that in Lua with Neovim at the time or something like that |
@rmagatti I think this can be closed now |
Describe the bug
Having dashes (-) in the project directory name, or any other directory in the project path, breaks loading sessions with the search/picker.
The dashes gets turned into backslashes.
See screenshots for example. I have a repo called test-repo-test, but it shows up as test\repo\test, meaning I can't load it with the picker.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
See the project path as it should be, with dashes in the name rather than backslashes.
Select the project path and have it load.
Screenshots


Baseline (please complete the following information):
set sessionoptions?
:sessionoptions=blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions
uname -a
:Windows 10 Pro (22H2) x64
nvim --version
NVIM v0.9.1
Not public.
But I've tested with only Lazy and auto-session installed, and no other settings. Same problem.
The text was updated successfully, but these errors were encountered: