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

refresh-mode doesn't work #932

Closed
c02y opened this issue Jun 11, 2019 · 5 comments
Closed

refresh-mode doesn't work #932

c02y opened this issue Jun 11, 2019 · 5 comments

Comments

@c02y
Copy link

c02y commented Jun 11, 2019

set refresh-mode auto

or

set refresh-mode = periodic
set refresh-interval = 5

in ~/.tigrc, neither of them works,

Simple test, I'm in status view in tig, touch abc in the repo outisde of tig, the status view never gets updated, I have to maunally refresh to tig. I didn't test other cases.

@c02y
Copy link
Author

c02y commented Jun 12, 2019

After installing the lastest tig from repo,

set refresh-mode = periodic
set refresh-interval = 5

works as expected, but set refresh-mode auto still doesn't work, but what I really like to use it set refresh-mode auto.

Could this bug be fixed too?

@koutcher
Copy link
Collaborator

The hierarchy of modes is:
manual = tig doesn't do anything
auto = tig reflects the changes it gets to know by some other actions
periodic = tig checks regularly for changes

In the use case you describe, in auto mode, if you just perform touch abc and do nothing in tig you can't expect it to discover the change.

@c02y
Copy link
Author

c02y commented Jun 12, 2019

Oh, I guess set refresh-mode = periodic is better then.

@patrickelectric
Copy link

Is it possible to update tig with a shortcut ?

@koutcher
Copy link
Collaborator

With the default bindings, you can press F5 or R to force a refresh.

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

No branches or pull requests

3 participants