Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The reload command not working automatically #1301

Closed
og900aero opened this issue Jun 12, 2023 · 9 comments · Fixed by #1667
Closed

The reload command not working automatically #1301

og900aero opened this issue Jun 12, 2023 · 9 comments · Fixed by #1667

Comments

@og900aero
Copy link

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
Copy link
Author

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

@azinsharaf
Copy link

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

@gokcehan
Copy link
Owner

gokcehan commented Jul 3, 2023

@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.

@azinsharaf
Copy link

azinsharaf commented Jul 3, 2023

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?

@gokcehan
Copy link
Owner

gokcehan commented Jul 4, 2023

@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.

@joelim-work
Copy link
Collaborator

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

@og900aero
Copy link
Author

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.

@joelim-work
Copy link
Collaborator

@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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants