-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
[FR] Watch for file changes instead of refresh every n seconds #39
Comments
That's a good idea! |
That is better solved by Also a Rust-based app. What do you think about collaboration, @blacknon? It seems timer- and filesystem-based watching is complementary, often needed together and shares some UI design. A single, more powerful tool with more maintainership capacity would be ideal, no? |
There's a way to set this up as follows:
An outline: $ # In one terminal or tmux tab
$ watchexec 'git log --graph --all --pretty=oneline > /tmp/git_log2 &&
mv /tmp/git_log2 /tmp/git_log' --print-events
$ # In another terminal or tmux tab
$ hwatch -n 0.2 cat /tmp/git_log You could also make a script to do this while running Unfortunately, I find that setting up I might also try Edit: I found while sleep 0.1; do
rg --files | entr -d -s 'git log --graph --all --pretty=oneline > /tmp/git_log2 &&
mv /tmp/git_log2 /tmp/git_log && date' && break
done |
It would be cool if there was an option to watch for file/directory chagnes instead of refreasing every n seconds. Like watching .git folder for refreshing
git status
.The text was updated successfully, but these errors were encountered: