joshuto icon indicating copy to clipboard operation
joshuto copied to clipboard

[Bug] File preview(with bat) does not update after file modification with vim

Open waynewaynetsai opened this issue 1 year ago • 1 comments

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:

  1. Use jushuto to browse files and check the preview of a file.
  2. Open the currently selected file with vim and modify the content.
  3. Exit vim with :wq to return to jushuto.
  4. 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

waynewaynetsai avatar May 12 '24 15:05 waynewaynetsai

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

kamiyaa avatar Jul 06 '24 23:07 kamiyaa