lf icon indicating copy to clipboard operation
lf copied to clipboard

The reload command not working automatically

Open og900aero opened this issue 1 year ago • 8 comments

I used the new Debian 12, and I try lf file manager again:

I noticed that the reload command does not work automatically when I copy, move or delete files. I guess it doesn't work in all other cases either. If I enter it manually, it refreshes the contents of the window.

og900aero avatar Jun 12 '23 10:06 og900aero

I try more, and the problem only persist, when I copy, move, delete to the mountable device, like usb pendrive.

og900aero avatar Jun 12 '23 11:06 og900aero

same here, I have to refresh it manually (ctrl+r) Windows 11 Pro

azinsharaf avatar Jun 20 '23 17:06 azinsharaf

@og900aero @azinsharaf We use modification times to trigger reloads when required. Some filesystems do not update modification times to reduce disk writes. If that's the case, I'm afraid it is currently considered working as intended and you need manual reloads.

gokcehan avatar Jul 03 '23 18:07 gokcehan

in my case i have a python script that creates a new folder and generates some files inside the folder. isn't it being considered as a simple and straightforward file system action?

azinsharaf avatar Jul 03 '23 22:07 azinsharaf

@azinsharaf I'm not sure if I understood what you meant but we don't have a mechanism to detect file system actions in your commands.

gokcehan avatar Jul 04 '23 09:07 gokcehan

You can also try the period option, which can poll for updates to the filesystem.

joelim-work avatar Jul 04 '23 10:07 joelim-work

You can also try the period option, which can poll for updates to the filesystem.

I try period. Set period 3 in lf.rc. Then I browse pendrive, and delete some files, and waiting 3 seconds, but doesnt reload automatically after 3 seconds.

og900aero avatar Jul 04 '23 13:07 og900aero

@og900aero The period option also works based on modification times, so for your case it won't help. I think you'll have to troubleshoot by looking at the modification times of the files on your pendrive.

I was actually responding to @azinsharaf's issue, which I think is different. The period option is useful for picking up changes to the filesystem from external processes outside of lf, which was why I suggested it. Sorry for the confusion.

joelim-work avatar Jul 04 '23 16:07 joelim-work

Adding the watch option in #1667 should help with automatic reload problems, closing this issue.

joelim-work avatar Jun 22 '24 06:06 joelim-work