-
- Downloads
Save and restore tab colors in tmux integration windows. tab colors are stored...
Save and restore tab colors in tmux integration windows. tab colors are stored in a session option (since window panes can move from window to window but cannot leave a session). Sure would be nice if tmux has window pane options. The tmux controller keeps a map from window pane to tab color. It passes it to the tmux window opener which decorates the layout parse tree with each window pane's tab color. PTYSession copies it into the arrangement (changing it from a #hexstring into a dictionary), and when restoring from a tmux arrangement the profile gets divorced and updated. This implementation is imperfect: if two clients are attached they'll have divergent pictures of the tab colors. The correct solution to this is to add window pane options to tmux and for tmux to post notifications when a window pane option changes. Issue 3531
Showing
- sources/NSColor+iTerm.h 3 additions, 0 deletionssources/NSColor+iTerm.h
- sources/NSColor+iTerm.m 24 additions, 0 deletionssources/NSColor+iTerm.m
- sources/PTYSession.m 37 additions, 10 deletionssources/PTYSession.m
- sources/TmuxController.h 3 additions, 0 deletionssources/TmuxController.h
- sources/TmuxController.m 81 additions, 1 deletionsources/TmuxController.m
- sources/TmuxLayoutParser.h 1 addition, 0 deletionssources/TmuxLayoutParser.h
- sources/TmuxLayoutParser.m 1 addition, 0 deletionssources/TmuxLayoutParser.m
- sources/TmuxWindowOpener.h 1 addition, 0 deletionssources/TmuxWindowOpener.h
- sources/TmuxWindowOpener.m 6 additions, 0 deletionssources/TmuxWindowOpener.m
Please register or sign in to comment