tmux-plugins / tmux-logging

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

Question -- is it possible to log the key inputs to a tmux pane? #4

Closed unphased closed 9 years ago

unphased commented 9 years ago

Hi there @bruno-

I am doing some screencasts and I figured it would be really cool if i could set it up so I have a tmux pane that echoes out the keys I am pressing on the keyboard. For example I'd like to make some videos to show people how I use Vim and Tmux and this would be a beautifully elegant way to do it than to resort to some external gui.

Now I can immediately think of one awful awful hack which is to set up a hundred binds for tmux that run some code to log the keystroke and then runs send-keys, but that seems stupid.

bruno- commented 9 years ago

Hey, hm.. I never thought about it, but it's a good idea. I can see myself using that for demos and presentations..

Now I can immediately think of one awful awful hack which is to set up a hundred binds for tmux that run some code to log the keystroke and then runs send-keys, but that seems stupid

Yea, well at first thought I'm also not sure how this could be done in some other way.. It wouldn't be so horrible if it was a separate plugin that would be explicitly activated only during the demo/screencast time (and deactivated otherwise).

But I'm pretty sure something like this doesn't exist for tmux yet.

bruno- commented 9 years ago

Hey I'm reviewing open issues. This one seems more like a general question and brainstorming so I'll close it.

Please, feel free to reopen if you get a new idea or something.

unphased commented 9 years ago

Yeah while tmux is probably theoretically capable of this, I think for example that iTerm2 already implements something like this, it's called Instant Replay

Hmm I was thinking of something entirely different. Sooo.. A large set of tmux bindings doesn't seem that bad. It sure is easier than patching tmux.