Automatically fetch from remotes at an interval
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 5.6k
- Forks
- 357
- Avg merge
- 15h 47m
- Merged PRs (30d)
- 2
Description
Is your feature request related to a problem? Please describe.
When checking out e.g. the branch of a pull request, I need to first fa (fetch all) and then bl to find the remote branch among the selection options. If Neogit fetched remotes automatically at an interval, this would not be necessary.
Describe the solution you'd like
I'd like Neogit to automatically fetch from all (or configured) remotes when Neovim starts, or when Neogit starts, at an interval.
See how e.g. Tower does this.
Configuration suggestion:
auto_fetch_remotes_interval_seconds = int | nil -- Nil is default, nil disables
Describe alternatives you've considered
Use a ZSH plug-in such as this one but it seems to requires Oh-my-ZSH which I don't want to use.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating Neogit's startup or initialization entry point and the existing fetch-all-remotes action. Define the configuration for all or selected remotes and an interval, with fetching disabled by default when the value is nil. Done means the configured behavior runs at startup or when Neogit starts and repeats at the requested interval.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, lua, neovim
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100