hedhyw / json-log-viewer

Interactive viewer for JSON logs.
MIT License
69 stars 6 forks source link

Support watch #52

Open wdanilo opened 5 months ago

wdanilo commented 5 months ago

Would it be possible to add watch support that:

  1. If scrolled bottom, will auto-scroll when new logs appear
  2. If scrolled a little bit up, will not auto-scroll
  3. Will have a shortcut to scroll to bottom

:)

hedhyw commented 5 months ago

Yes, it is possible. Currently, manual reload is implemented after pressing "Up" at the top of the table.

hedhyw commented 5 months ago

https://github.com/hedhyw/json-log-viewer/blob/327c116fbce61cd86d6e2322bed4965bdbf87c89/internal/app/stateloaded.go#L73C12-L73C44