helix/helix-view
Anthony Rubick 104bb7443f
feat: automatic reload when file changes externally
Implements the idea raised by @porridgewithraisins in this comment:
https://github.com/helix-editor/helix/issues/1125#issuecomment-3073782827

The implementation was modeled after the implementation of the autosave feature.

Here are some example snippets of configuration for this feature:

- disable auto-reloading (default)
```toml
[editor]
auto-reload = false
```
or
```toml
[editor.auto-reload]
focus-gained = false
```
- auto-reload on focus
```toml
[editor]
auto-reload = true
```
or
```toml
[editor.auto-reload]
focus-gained = true
```
- auto-reload at some periodically at time interval (5 seconds in this example)
```toml
[editor.auto-reload]
periodic.enable = true
periodic.interval = 5000
```
- of course, you could have it reload on focus and at an interval too:
```toml
[editor.auto-reload]
focus-gained = true
periodic.enable = true
periodic.interval = 5000
```
2025-07-15 17:47:54 -07:00
..
src feat: automatic reload when file changes externally 2025-07-15 17:47:54 -07:00
tests/encoding Re-vendor encoding_rs test data 2024-11-13 15:30:17 +09:00
Cargo.toml minor: Use a workspace dependency for parking_lot 2025-03-13 12:34:40 -04:00