Skip to content
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

win10 save/open session error #42

Closed
coco-hkk opened this issue Jan 9, 2021 · 1 comment · Fixed by #281
Closed

win10 save/open session error #42

coco-hkk opened this issue Jan 9, 2021 · 1 comment · Fixed by #281

Comments

@coco-hkk
Copy link

coco-hkk commented Jan 9, 2021

win10 error ouput:

处理  function sessions#session#session_save 时发生错误

无法打开并写入 “D:/Neovim/session/D:\Neovim\bin\.vim”

session `D:/Ndovim/session/D:\Neovim\bin\.vim` is now persistent

It seems to be caused by the variable file_path in file autoload/sessions/session.vim .

let file_path = g:session_directory.'/'.file_name.'.vim'

I try to reprocess file_name as follow, it looks working.

let file_path = g:session_directory.'/'.split(file_name, '')[-1].'.vim'

@glepnir
Copy link
Member

glepnir commented Jan 9, 2021

@coco-hkk If this can work for you PR welcome. I don't have a win system to test it.

@glepnir glepnir closed this as completed Feb 20, 2021
Neelfrost added a commit to Neelfrost/dashboard-nvim that referenced this issue Jul 26, 2021
SessionSave without argument will save a session with current buffer name, and SessionLoad without argument loads most recent session sorted by time
Neelfrost added a commit to Neelfrost/dashboard-nvim that referenced this issue Jul 26, 2021
Windows specific fixes.
1. Proper path separators for windows and linux.
2. SessionSave without argument will save a session with current buffer name.
3. SessionLoad without argument loads most recent session sorted by time.
glepnir pushed a commit that referenced this issue May 30, 2022
Windows specific fixes.
1. Proper path separators for windows and linux.
2. SessionSave without argument will save a session with current buffer name.
3. SessionLoad without argument loads most recent session sorted by time.
glepnir pushed a commit that referenced this issue Jun 5, 2022
Windows specific fixes.
1. Proper path separators for windows and linux.
2. SessionSave without argument will save a session with current buffer name.
3. SessionLoad without argument loads most recent session sorted by time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants