This would be fantastic... the dream of autosave fully realised.
I get the impression this is possible (and without requiring entering something in the shell, like https://github.com/pivotal/tmux-config requires), since tmux knows when it switches and it should be possible to attach some extra code at that point (possibly by remapping the original keys to a wrapper function).
For now my workaround is to put things that I want to autosave between in two different iTerm2 windows, and switch between them using the regular OSX shortcut (C-Tilde). Would really be nice to do within one window though.
If I get around to this myself I'll be sure to share it back here.
Check out #21. set -g focus-events on makes this magic work by having tmux pass along the focus event-escape-sequence. Works in Tmux 1.9a. Totally goddamn epic.
This would be fantastic... the dream of autosave fully realised.
I get the impression this is possible (and without requiring entering something in the shell, like https://github.com/pivotal/tmux-config requires), since tmux knows when it switches and it should be possible to attach some extra code at that point (possibly by remapping the original keys to a wrapper function).
For now my workaround is to put things that I want to autosave between in two different iTerm2 windows, and switch between them using the regular OSX shortcut (C-Tilde). Would really be nice to do within one window though.
If I get around to this myself I'll be sure to share it back here.