json-log-viewer
json-log-viewer copied to clipboard
Support watch
Would it be possible to add watch support that:
- If scrolled bottom, will auto-scroll when new logs appear
- If scrolled a little bit up, will not auto-scroll
- Will have a shortcut to scroll to bottom
:)
Yes, it is possible. Currently, manual reload is implemented after pressing "Up" at the top of the table.
https://github.com/hedhyw/json-log-viewer/blob/327c116fbce61cd86d6e2322bed4965bdbf87c89/internal/app/stateloaded.go#L73C12-L73C44
implemented in https://github.com/hedhyw/json-log-viewer/pull/85