Skip to content

Mishandling of file change detection from Vim editor #6201

Open
@tsvgmi

Description

@tsvgmi
  • [ x] Searched existing issues to avoid creating duplicates.

  • [x ] Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • [x ] Searched http://support.typora.io/


Describe the bug
When a file opened by Typora is modified by NeoVim externally, Typora does not sync the content, and disassociate it copy quietly from sync - so when user wanted to save, they would lose all change content from Vim

To Reproduce
Steps to reproduce the behavior:

  1. Use Typora to open an .md file in Downloads folder (local directory)
  2. Use NeoVide (3rd party app on Windows), to open the same file
  3. Use NotePad on Windows to open the same file
  4. Make changes on Typora - seeing the change reflected in Neovide, and NotePad
  5. Make changes on NotePad, and see the changes on Neovide and Typora
  6. Make change on Neovide. Seeing change on NotePad
  7. NOT SEEING CHANGE on Typora
  8. However, Typora still allow local change, and stop auto-update of the file
  9. Type CTRL-S on Typora. IT OPENS UP EXPLORER WINDOW TO SELECT FILE TO SAVE TO
  10. If I select the original file, it will overwrite all changes from step 6
  11. If I edit now in NotePad. I no longer see changes on Typora but still seeing changes on NeoVide. Typora seems to be removed out of the sync process.

Expected behavior
Either

  1. Typora auto reload after step 6 (changes from Neovide)
  2. Typora pop up warning asking user to reload

Screenshots / Screencasts
If applicable, add screenshots / screencasts to help explain your problem.

Sample Markdown File
Please attach or send us [email protected] the sample md file that may reproduce this.

Desktop (please complete the following information):

  • OS: Windows 11 - 64 bit

Typora Version
1.9.5

Additional context
It would sync with NoteAad++, Visual Code Studio, .. but just not with NeoVim

I see the same behavior when editing with vim on WSL2. So Typora is able to detect the changes and disassociate it's copy from the rest of test of the application editing. But it should not, or offer user to reload - before user start making further changes to it's copy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions