 ╔════════════════════════════════════════════════════════════════════════════╗
 ║ Sessions                                                                   ║
 ╚════════════════════════════════════════════════════════════════════════════╝
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓  ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 ┃ $ tmux                             ┃  ┃ $ tmux ls                          ┃
 ┃ $ tmux new                         ┃  ┃ $ tmux list-sessions               ┃
 ┃ $ tmux new-session                 ┃  ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 ┃ : new                              ┃  [Ctrl] + [b] [s]
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛  Show all sessions
 Start a new session
                                         ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓  ┃ $ tmux a                           ┃
 ┃ $ tmux new -s mysession            ┃  ┃ $ tmux at                          ┃
 ┃ : new -s mysession                 ┃  ┃ $ tmux attach                      ┃
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛  ┃ $ tmux attach-session              ┃
 Start a new session with the name       ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 mysession                               Attach to last session

 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓  ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 ┃ $ tmux kill-ses -t mysession       ┃  ┃ $ tmux a -t mysession              ┃
 ┃ $ tmux kill-session -t mysession   ┃  ┃ $ tmux at -t mysession             ┃
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛  ┃ $ tmux attach -t mysession         ┃
 kill/delete session mysession           ┃ $ tmux attach-session -t mysession ┃
                                         ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓  Attach to a session with the name
 ┃ $ tmux kill-session -a             ┃  mysession
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 kill/delete all sessions but the        [Ctrl] + [b] [(]
 current                                 Move to previous session

 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓  [Ctrl] + [b] [)]
 ┃ $ tmux kill-session -a -t mysession┃  Move to next session
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 kill/delete all sessions but
 mysession

 [Ctrl] + [b] [$]
 Rename session

 [Ctrl] + [b] [d]
 Detach from session

 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 ┃ : attach -d                        ┃
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 Detach others on the session
 (Maximize window by detach other
 clients)

 ╔════════════════════════════════════════════════════════════════════════════╗
 ║ Windows                                                                    ║
 ╚════════════════════════════════════════════════════════════════════════════╝
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 ┃ $ tmux new -s mysession -n mywindow┃  [Ctrl] + [b] [n]
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛  Next window
 start a new session with the name
 mysession and window mywindow           [Ctrl] + [b] [0] ... [9]
                                         Switch/select window by number
 [Ctrl] + [b] [c]
 Create window                           ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
                                         ┃ : swap-window -s 2 -t 1            ┃
 [Ctrl] + [b] [,]                        ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 Rename current window                   Reorder window, swap window number
                                         2(src) and 1(dst)
 [Ctrl] + [b] [&]
 Close current window                    ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
                                         ┃ : swap-window -t -1                ┃
 [Ctrl] + [b] [p]                        ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 Previous window                         Move current window to the left by
                                         one position

 ╔════════════════════════════════════════════════════════════════════════════╗
 ║ Panes                                                                      ║
 ╚════════════════════════════════════════════════════════════════════════════╝

 [Ctrl] + [b] [;]                        [Ctrl] + [b] [q]
 Toggle last active pane                 Show pane numbers

 [Ctrl + [b] [%]                         [Ctrl] + [b] [q] [0] ... [9]
 Split pane vertically                   Switch/select pane by number

 [Ctrl + [b] ["]                         [Ctrl] + [b] [z]
 Split pane horizontally                 Toggle pane zoom

 [Ctrl + [b] [{]                         [Ctrl] + [b] [!]
 Move the current pane left              Convert pane into a window

 [Ctrl + [b] [}]                         [Ctrl] + [b] + [Up]
 Move the current pane right             [Ctrl] + [b] [Ctrl] + [Up]
                                         [Ctrl] + [b] + [Down]
 [Ctrl + [b] [Up]                        [Ctrl] + [b] [Ctrl] + [Down]
 [Ctrl + [b] [Down]                      Resize current pane height
 [Ctrl + [b] [Right]                     (holding second key is optional)
 [Ctrl + [b] [Left]
 Switch to pane to the direction         [Ctrl] + [b] + [Right]
                                         [Ctrl] + [b] [Ctrl] + [Right]
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓  [Ctrl] + [b] + [Left]
 ┃ : setw synchronize-panes           ┃  [Ctrl] + [b] [Ctrl] + [Left]
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛  Resize current pane width
 Toggle synchronize-panes                (holding second key is optional)
 (send command to all panes)
                                         [Ctrl] + [b] [x]
 [Ctrl] + [b] [Spacebar]                 Close current pane
 Toggle between pane layouts

 [Ctrl] + [b] [o]
 Switch to next pane

 ╔════════════════════════════════════════════════════════════════════════════╗
 ║ Copy Mode                                                                  ║
 ╚════════════════════════════════════════════════════════════════════════════╝
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 ┃ : setw -g mode-keys vi             ┃  [/]
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛  Search forward
 use vi keys in buffer
                                         [?]
 [Ctrl] + [b] [[]                        Search backward
 Enter copy mode
                                         [n]
 [Ctrl] + [b] [PgUp]                     Next keyword occurance
 Enter copy mode and scroll one
 page up                                 [N]
                                         Previous keyword occurance
 [q]
 Quit mode                               [Spacebar]
                                         Start selection
 [g]
 Go to top line                          [Esc]
                                         Clear selection
 [G]
 Go to bottom line                       [Enter]
                                         Copy selection
 [Up]
 Scroll up                               [Ctrl] + [b] []]
                                         Paste contents of buffer_0
 [Down]
 Scroll down                             ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
                                         ┃ : show-buffer                      ┃
 [h]                                     ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 Move cursor left                        display buffer_0 contents

 [j]                                     ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 Move cursor down                        ┃ : capture-pane                     ┃
                                         ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 [k]                                     copy entire visible contents of pane
 Move cursor up                          to a buffer

 [l]                                     ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 Move cursor right                       ┃ : list-buffers                     ┃
                                         ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 [w]                                     Show all buffers
 Move cursor forward one word
 at a time                               ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
                                         ┃ : choose-buffer                    ┃
 [b]                                     ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 Move cursor backward one word           Show all buffers and paste selected
 at a time
                                         ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
                                         ┃ : save-buffer buf.txt              ┃
                                         ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
                                         Save buffer contents to buf.txt

                                         ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
                                         ┃ : delete-buffer -b 1               ┃
                                         ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
                                         delete buffer_1

 ╔════════════════════════════════════════════════════════════════════════════╗
 ║ Misc                                                                       ║
 ╚════════════════════════════════════════════════════════════════════════════╝
                                         ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 [Ctrl] + [b] [:]                        ┃ : setw -g OPTION                   ┃
 Enter command mode                      ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
                                         Set OPTION for all windows
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 ┃ : set -g OPTION                    ┃
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
 Set OPTION for all sessions

 ╔════════════════════════════════════════════════════════════════════════════╗
 ║ Help                                                                       ║
 ╚════════════════════════════════════════════════════════════════════════════╝
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
 ┃ $ tmux info                        ┃  [Ctrl] + [b] [?]
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛  Show shortcuts
 Show every session, window, pane,
 etc...

# -- Keybindings ---------------------------------------------------------------
pref - r = source tmux
pref - e = edit config
pref - m = mouse on
pref - M = mouse off
pref - E = switch between synchronize
pref - - = split horizontally
pref - | = split vertically
pref - HJKL = resize
pref - . = rename session

pref - & = kill window
pref - W = swap window
pref - { = swap window
pref - } = swap window
pref - shift + -> = swap window
pref - shift + <- = swap window
pref - shift + up = choose tree

pref - C-hjkl = navigate panes
pref - c-x = send pane to background
pref - x = kill pane
pref - P = swap pane
pref - [ = swap pane
pref - ] = swap pane
pref - v = throw pane into current pane
pref - h = throw pane into current pane
pref - q = swap pane with selected pane
pref - Q = swap pane with selected pane
pref - W = interactively move pane to other window
pref - P = interactively move pane to other window
pref - alt-shift-p = swap current pane prompt
pref - alt-p = move current pane prompt

alt-shift-a = select pane and zoom
alt-shift-s = select pane
alt-shift-q = select prev window
alt-shift-w = select next window

pref - X = kill all sessions
pref - ) = switch sessions
pref - ( = switch sessions
pref - c-p = choose tree
pref - alt-w = swap current window prompt

pref - W = choose swap window
pref - P = choose swap pane
pref - c-p = choose move pane

pref - G = hide/show statusbar

pref - c-t = clock mode
pref - alt-c = open buffer in vim
pref - alt-o = screencapture

=== Copy Mode ===
esc = copy mode
p = paste buffer
+ = delete buffer
o = surfraw google
U = youtube-viewer
O = w3m

=== Choose Mode ===

== External Programs ==
pref - I = install plugin
pref - U = update plugin

pref - c-f = tmux-fzf
pref - alt-t = task spooler
pref - s = bmux
pref - Enter = sr (split)
pref - Y = youtube-viewer
pref b = open browser Buku (split)

pref - t = tmux-fzf-words
pref - T = tmux-fzf-words all
pref - 0 = tmux-fzf-panes

alt-v = ytfzf
alt-s = surfraw
alt-m = neomutt
alt-r = newsboat
c-\ = open browser Buku

Default
c-d = close pane
c-o = swap pane
x = close pane
d = detach window
c = new window
w = list windows

# =================================================================
# =================================================================

C-o         Rotate the panes in the current window forwards.
C-z         Suspend the tmux client.
!           Break the current pane out of the window.
"           Split the current pane into two, top and bottom.
#           List all paste buffers.
$           Rename the current session.
%           Split the current pane into two, left and right.
&           Kill the current window.
'           Prompt for a window index to select.
(           Switch the attached client to the previous session.
)           Switch the attached client to the next session.
,           Rename the current window.
-           Delete the most recently copied buffer of text.
.           Prompt for an index to move the current window.
0 to 9      Select windows 0 to 9.
:           Enter the tmux command prompt.
;           Move to the previously active pane.
=           Choose which buffer to paste interactively from a list.
?           List all key bindings.
D           Choose a client to detach.
L           Switch the attached client back to the last session.
[           Enter copy mode to copy text or view the history.
]           Paste the most recently copied buffer of text.
c           Create a new window.
d           Detach the current client.
f           Prompt to search for text in open windows.
i           Display some information about the current window.
l           Move to the previously selected window.
m           Mark the current pane (see select-pane -m).
M           Clear the marked pane.
n           Change to the next window.
o           Select the next pane in the current window.
p           Change to the previous window.
q           Briefly display pane indexes.
r           Force redraw of the attached client.
s           Select a new session for the attached client interactively.
t           Show the time.
w           Choose the current window interactively.
x           Kill the current pane.
z           Toggle zoom state of the current pane.
{           Swap the current pane with the previous pane.
}           Swap the current pane with the next pane.
~           Show previous messages from tmux, if any.
Page Up     Enter copy mode and scroll one page up.
Space       Arrange the current window in the next preset layout.
M-n         Move to the next window with a bell or activity marker.
M-o         Rotate the panes in the current window backwards.
M-p         Move to the previous window with a bell or activity marker.
C-Up, C-Down
C-Left, C-Right Resize the current pane in steps of one cell.
M-Up, M-Down
M-Left, M-Right Resize the current pane in steps of five cells.
