The Wayback Machine - http://web.archive.org/web/20201207143620/https://github.com/jesseduffield/lazygit/issues/894
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

Option to change refresh rate/frequency #894

Open
OliverJAsh opened this issue Jul 14, 2020 · 1 comment
Open

Option to change refresh rate/frequency #894

OliverJAsh opened this issue Jul 14, 2020 · 1 comment

Comments

@OliverJAsh
Copy link

@OliverJAsh OliverJAsh commented Jul 14, 2020

Is your feature request related to a problem? Please describe.
I find myself having to manually refresh too often. I would like lazygit to refresh automatically more frequently.

Describe the solution you'd like
An option to change to refresh rate/frequency.

Describe alternatives you've considered

Additional context

@jesseduffield
Copy link
Owner

@jesseduffield jesseduffield commented Nov 28, 2020

For anybody who might want to tackle this, we currently refresh files/submodules every 10 seconds, and we re-fetch every 60 seconds. These could be made into configurable times. They're currently hardcoded in pkg/gui/gui.go where we call gui.goEvery. The place to create new config keys would be pkg/config/user_config.go and you'd also want to update the docs in docs/Config.md.

Worth noting that I tried getting file watching working again recently but couldn't find a way around the issue where you get an error due to too many files being watched.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.