Byobu + Tmux Tips # 2014-01-22
Scenario#1
As a Byobu-Tmux user, I want to broadcast command to multiple panes. So that I don't have to do the same thing for each pane.
Scenario#5
Move current pane to new session
As a Byobu-Tmux user, I want to broadcast command to multiple panes. So that I don't have to do the same thing for each pane.
- solution#1
- enter command mode => PREFIX + :
- active this feature => setw synchronize-panes on
- deactive => setw synchronize-panes off
Scenario#2
As a Byobu-Tmus user, I want to have a shortcut to maximize/minimize current pane. So that I can see/work on specific pane efficiently.
- solution#1
- edit ~/.byobu/keybindings.tmux
fill-in these code below
# maximum pane and restore
unbind +
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
unbind -
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom
# resize pane
bind H resize-pane -L 1
bind J resize-pane -D 1
bind K resize-pane -U 1
bind L resize-pane -R 1
Scenario#3
As a Byobu-Tmux user, I want to copy/paste text in pane with mouse. So that I can make that info more productive.
- solution
- hold shift key that wipe need text with your mouse pointer
- do middle click at your mouse
- right-click then paste anywhere as you want
Scenario#4
Reload tmux config
Reload tmux config
- solution#1
- enter command mode => PREFIX + :
- source-file
Scenario#5
Move current pane to new session
- solution
- at the current pane, do => PREFIX + !
For scenario #1, how do I enter command mode in byobu? What is the PREFIX?
ReplyDeleteFound it, it's F12
DeleteIf you want to make the Scenario#1 easier you can find it here http://fazlearefin.blogspot.com.au/2014/09/synchronize-panes-in-tmux-and-byobu.html
ReplyDelete