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

Data lost when the wiki name is truncated. #1399

Open
VimWei opened this issue Apr 3, 2024 · 0 comments
Open

Data lost when the wiki name is truncated. #1399

VimWei opened this issue Apr 3, 2024 · 0 comments

Comments

@VimWei
Copy link

VimWei commented Apr 3, 2024

I creat a wiki page with vimwiki, and there is a : in the name such as 20240322foo10:00bar.md.
Vimwiki can create, edit and save this page. And this page can be reopened with the same name after closing Vim.
However, I found that the page file is actually saved as short name 20240322foo10 on the disk and the file size is 0.

image

And undotree work fine with the full name 20240322foo10%00bar.md.

image

Because I discovered the problem later, I deleted those zero-size files. Fortunately, I have backups of these files. However, when I put the backup files back and Vimwiki opens them with the original full names, the content is blank, and I can't use undotree either.

Is there any way to restore the files in this situation?

ref:mbbill/undotree#116 (comment)

@VimWei VimWei changed the title The filename has been truncated; where has the file content been saved? Where is the content when the wiki name is truncated? Apr 3, 2024
@VimWei VimWei changed the title Where is the content when the wiki name is truncated? Data lost when the wiki name is truncated. Apr 3, 2024
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

No branches or pull requests

1 participant