walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
676 stars 19 forks source link

`G` should reload file content #224

Closed lapo-luchini closed 4 months ago

lapo-luchini commented 4 months ago

In less pressing G goes to the end of the file, but if the file got new lines since opening (e.g. a live log files) it does also load new lines, moar at the moment only shows the content at the time of first launch.

lapo-luchini commented 4 months ago

(also implementing F for continuous "follow" would be nice, but that's a different feature)

walles commented 4 months ago

Yes, thanks for pointing this out!

It already works for streams, so until this is implemented for files instead, this will work around it:

tail -f file.log | moar
walles commented 4 months ago

Some work started here, no promises for if or when something will show up in a release:

https://github.com/walles/moar/commits/johan/tail-files/

walles commented 4 months ago

This should work in just-released 1.25.0.