Skip to content
New issue

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

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

Already on GitHub? # to your account

feature request: auto-detect file changes in cwd and refresh view #292

Closed
1 task done
fralomb opened this issue Jan 24, 2024 · 2 comments
Closed
1 task done

feature request: auto-detect file changes in cwd and refresh view #292

fralomb opened this issue Jan 24, 2024 · 2 comments
Labels
enhancement New feature or request P0 Highest priority, will receive attention

Comments

@fralomb
Copy link

fralomb commented Jan 24, 2024

Did you check existing requests?

  • I have searched the existing issues

Describe the feature

It would be great if oil could be able to detect that a file or directory has been modified outside neovim and, consequentially, reflect the updated status of the current working directory in the oil buffer.

Provide background

If i create some files or folders from outside neovim, i do not have a view in oil of what my repository currently look like until i close and reopen neovim

What is the significance of this feature?

strongly desired

Additional details

No response

@fralomb fralomb added the enhancement New feature or request label Jan 24, 2024
@stevearc stevearc added the P0 Highest priority, will receive attention label Feb 20, 2024
@stevearc
Copy link
Owner

I added the experimental_watch_for_changes option that enables this. It uses the libuv fs_event to watch open directories for changes. You'll need to opt in to the behavior for now, but at some point in the future once I'm convinced that it's stable I'll make this the default behavior and change the config option name to not be experimental.

@fralomb
Copy link
Author

fralomb commented Feb 27, 2024

thank you @stevearc, it is working pretty well actually!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request P0 Highest priority, will receive attention
Projects
None yet
Development

No branches or pull requests

2 participants