-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
[watch]: Add a way to automatically reload a data source based on time or other event. #683
Comments
I'd love this also - maybe a watcher thread that does the check and issues a reload if required? |
This is a good idea, @frosencrantz. The original prototype of VisiData (called "tpmenu") had this feature, to reload the page every N seconds. It also had something like Kondo'ed per wishlist policy. (A Workflow Optimist subscriber on Patreon can keep it open and in our awareness.) |
I like the idea of the addcol-derivative. I think that would be great. The other thing that might be useful is a way to auto join on each reload, so that multiple input sources can be combined. I do remember you saying something about the tpmenu in one of your interviews, though not by name. Thanks, @saulpw. I will wait until I can officially support the wishlist or a real sponsor does. |
@saulpw Was this ever picked up again? What's the current state of "reloading the data source" in visidata? My usecase is to "watch" a CSV file that gets updated on the server ever 5-10 seconds. So by running something like How hard would it be to implement this as a separate sheet Having custom columns working with a reloading sheet would be good to have as well. |
Try this in your .visidatarc:
I also added this to vdplus. |
Thanks, @saulpw! Very happy to see this new feature. |
The Unix
watch
command periodically runs the same command so you can see the results over time.It would be useful if Visidata could automatically reload the same data source after a specified time.
It would also be useful if Visidata could run a command as a data source. Currently it can only open files or URLs.
The text was updated successfully, but these errors were encountered: