joshuto
joshuto copied to clipboard
[Bug] File preview(with bat) does not update after file modification with vim
Description:
When a file is modified using vim, the file preview(with bat) in jushuto does not update to reflect the changes. The preview only updates after restarting jushuto.
Steps to reproduce:
- Use jushuto to browse files and check the preview of a file.
- Open the currently selected file with vim and modify the content.
- Exit vim with :wq to return to jushuto.
- Check the preview of the modified file in jushuto. The preview does not reflect the changes made.
-
Workaround: Restarting jushuto updates the file preview.
-
Expected behavior: The file preview should update immediately after a file is modified, without needing to restart jushuto. This is the behavior observed in ranger.
-
Version: joshuto-0.9.8
There is code to track the timestamp of previews so it can refresh if file timestamp differs. But the code for actually checking and refreshing is not implemented yet xd