hwatch icon indicating copy to clipboard operation
hwatch copied to clipboard

Reverse lines in output of watched command

Open sanmai-NL opened this issue 2 years ago • 1 comments

Some popular command statements users use hwatch with, for example Kubernetes kubectl, depend on extra tools and a pipeline to reverse their output. As far as I know, using a pipeline with hwatch requires verbose and suboptimal work-arounds, such as invoking hwatch sh -c '...'. Can hwatch instead support to reverse its output in terms of lines?

sanmai-NL avatar Sep 20 '23 07:09 sanmai-NL

Do you mean an option to reverse the order without intervening the tac command? 🤔

I'll think about it a little.

blacknon avatar Mar 04 '24 07:03 blacknon

Added a new reverse mode. You can switch using the -r option or the r key.

Since we have finished adding the functionality, we will close this issue. Thank you for the issue.

blacknon avatar May 06 '24 06:05 blacknon