json-log-viewer icon indicating copy to clipboard operation
json-log-viewer copied to clipboard

Support watch

Open wdanilo opened this issue 1 year ago • 2 comments

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

:)

wdanilo avatar Feb 10 '24 04:02 wdanilo

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

hedhyw avatar Feb 13 '24 11:02 hedhyw

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

hedhyw avatar Feb 13 '24 11:02 hedhyw

implemented in https://github.com/hedhyw/json-log-viewer/pull/85

hedhyw avatar Sep 16 '24 05:09 hedhyw