tmux-plugins / tmux-logging

Easy logging and screen capturing for Tmux.
MIT License
1.03k stars 113 forks source link

Add screen output pipe command option #52

Closed ryanmcnamara closed 2 years ago

ryanmcnamara commented 4 years ago

Allows piping all pane saving through some command. Default is cat, effectively a noop.

One example use case (how I plan to use this) is to pipe all output through ts, prepending timestamps to captured output.

set via

set -g @screen-capture-pipe-command 'ts'
iDings commented 2 years ago

Useful, for microsecond precision can set to set -g @screen-capture-pipe-command "ts '[%Y-%m-%d %H:%M:%.S]'". Thanks