kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.34k stars 151 forks source link

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

Open waynewaynetsai opened 1 month ago

waynewaynetsai commented 1 month ago

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.