Byobu: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
→‎keyboard shortcuts: add more commands for split windows
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
= keyboard shortcuts =
= keyboard shortcuts =


<code>Ctrl+a</code> <code>|</code> - Split screen horizontally
I haven't had time to differentiate between when tmux or screen is used here.  I've just continued to add this page over time without considering when I'm using screen or tmux and whether or not I have the function keys disabled for whatever reason. Some may not work due to some specific configuration idiosyncrasy with your distribution or the package.  Some keybindings are definitely deprecated or no longer valid, but I've kept them here because I haven't been able to check against the "official" version yet.  Use at your discretion.


<code>Ctrl+a</code> <code>%</code> - Split screen vertically
== Basic ==


<code>Ctrl+a</code> <code>:resize-pane -L 20</code> - Resize increase left of current window pane by 20 units (other available ones are -D, -R, -U)
<code>F2</code> or <code>Ctrl + a + c</code> - Create a new session


<code>Ctrl+a</code> <code>Tab</code> - Next to the next screen in a split screen
<code>F3</code> or <code>Ctrl + a + a</code> - Go back to the previous session


<code>Ctrl+a</code> <code>c</code> - Create a new window
<code>F4</code> or <code>Ctrl + a + n</code> - Go to the next session


C-a A - Rename the screen
<code>F7</code> or <code>Ctrl + a + [</code> - Scrollback/search mode (Press Enter to exit)


C-a C-a - Go back to the previous window
<code>F8</code> or <code>Ctrl + a + A</code> - Rename the screen


C-a <0-9> - Switch to screen #0-9 (quick toggle)
<code>F9</code> or <code>Ctrl + a + @</code> - Configuration menu


C-a " - View a list of the current screens, which will allow you to select one from the list
== Utility ==


C-a ' - Enter a screen number to switch to (slower version of C-a <0-9>)
<code>F5</code> or <code>Ctrl + a + R</code> - Refresh all status notifications


C-a d - Detach the whole screen session and fork to the background. Very useful for remote sessions you want to leave open. The command "screen -r" will resume your screen session.
<code>F6</code> or <code>Ctrl + a + d</code> - Detach from the session and logout


C-a <Escape> - Scroll up through your command line "history" and see what output you previously got. Hitting <Escape> again cancels it.
<code>Ctrl + a</code> <<code>0</code>-<code>9</code>> - Switch to screen #0-9 (quick toggle)


<span class="package">Ctrl</span>+<span class="package">a</span> <span class="package">:</span> <span class="package">clear-history</span> - clear history in the viewing buffer
<code>Ctrl + a</code> <code>"</code> - View a list of the current screens, which will allow you to select one from the list


== links ==
<code>Ctrl + a</code> <code>\</code> - Kill all of the sessions and terminate


http://aperiodic.net/screen/quick_reference
<code>Ctrl + a</code> <code>~</code> - Copy buffer into an editor
 
== Split window management ==
 
<code>Shift + F2</code> or <code>Ctrl + a</code> <code>|</code> - Split window horizontally
 
<code>Ctrl + F2</code> or <code>Ctrl + a</code> <code>S</code> or <code>Ctrl + a</code> <code>%</code> - Split window vertically
 
<code>Shift + F5</code> - Collapse all splits
 
<code>Ctrl + a</code> <code>Tab</code> - Focus on the next window
 
<code>Ctrl + a</code> <code>X</code> - Close the current window
 
<code>Ctrl + a</code> <code>:resize +N</code> - Increase the height
 
<code>Ctrl + a</code> <code>:resize -N</code> - Decrease the height
 
<code>Ctrl + a</code> <code>:resize N</code> - Set height
 
<code>Ctrl + a</code> <code>:resize =</code> - Make all windows equally high
 
<code>Ctrl + a</code> <code>:resize max</code> - Maximize the height
 
<code>Ctrl + a</code> <code>:resize min</code> - Minimize the height
 
== Miscellaneous ==
 
<code>Ctrl + a</code> <code>x</code> - Lock the terminal
 
<code>Ctrl + a</code> <code>d</code> - Detach the whole screen session and fork to the background. Very useful for remote sessions you want to leave open. The command "screen -r" will resume your screen session.
 
<code>Ctrl + a</code> <code>Esc</code> - Scroll up through your command line "history" and see what output you previously got. Hitting <Escape> again cancels it.
 
<code>Ctrl + a</code> <code>:help</code> - Show screen keybindings (if using screen)
 
<code>Ctrl + a + !</code> - Toggle f-key keybindings on
 
<code>Ctrl + a + $</code> - Show detailed status
 
== Possibly deprecated ==
 
<code>Shift + F3</code> - Focus on next split
 
<code>Shift + F4</code> - Focus on previous split
 
<code>Shift + F6</code> - Detach from the session, but do not logout
 
<code>Ctrl + a</code> <code>:resize-pane -L 20</code> - Resize increase left of current window pane by 20 units (other available ones are -D, -R, -U)
 
<code>Ctrl + a</code> <code>:clear-history</code> - clear history in the viewing buffer
 
 
== Untested ==
 
<code>Alt + F5</code> - Toggle UTF-8
 
<code>Ctrl + F5</code> - Reconnect any SSH/GPG sockets or agents
 
 
=== Nested remote session ===
 
<code>Shift+F12</code> - Toggle the outer byobu's keybindings on or off
 
<code>Ctrl+a</code> <code>a</code> <code>c</code> - Create a new session
 
= Links =
 
* https://gist.github.com/devhero/7b9a7281db0ac4ba683f (added on 2019-05-29)
* http://aperiodic.net/screen/quick_reference
* https://gist.github.com/jshaw/5255721
 
== Terminal Multiplexers ==
* https://linuxcommand.org/lc3_adv_termmux.php
* [[Screen]]

Latest revision as of 13:07, 13 September 2023

keyboard shortcuts

I haven't had time to differentiate between when tmux or screen is used here. I've just continued to add this page over time without considering when I'm using screen or tmux and whether or not I have the function keys disabled for whatever reason. Some may not work due to some specific configuration idiosyncrasy with your distribution or the package. Some keybindings are definitely deprecated or no longer valid, but I've kept them here because I haven't been able to check against the "official" version yet. Use at your discretion.

Basic

F2 or Ctrl + a + c - Create a new session

F3 or Ctrl + a + a - Go back to the previous session

F4 or Ctrl + a + n - Go to the next session

F7 or Ctrl + a + [ - Scrollback/search mode (Press Enter to exit)

F8 or Ctrl + a + A - Rename the screen

F9 or Ctrl + a + @ - Configuration menu

Utility

F5 or Ctrl + a + R - Refresh all status notifications

F6 or Ctrl + a + d - Detach from the session and logout

Ctrl + a <0-9> - Switch to screen #0-9 (quick toggle)

Ctrl + a " - View a list of the current screens, which will allow you to select one from the list

Ctrl + a \ - Kill all of the sessions and terminate

Ctrl + a ~ - Copy buffer into an editor

Split window management

Shift + F2 or Ctrl + a | - Split window horizontally

Ctrl + F2 or Ctrl + a S or Ctrl + a % - Split window vertically

Shift + F5 - Collapse all splits

Ctrl + a Tab - Focus on the next window

Ctrl + a X - Close the current window

Ctrl + a :resize +N - Increase the height

Ctrl + a :resize -N - Decrease the height

Ctrl + a :resize N - Set height

Ctrl + a :resize = - Make all windows equally high

Ctrl + a :resize max - Maximize the height

Ctrl + a :resize min - Minimize the height

Miscellaneous

Ctrl + a x - Lock the terminal

Ctrl + a d - Detach the whole screen session and fork to the background. Very useful for remote sessions you want to leave open. The command "screen -r" will resume your screen session.

Ctrl + a Esc - Scroll up through your command line "history" and see what output you previously got. Hitting <Escape> again cancels it.

Ctrl + a :help - Show screen keybindings (if using screen)

Ctrl + a + ! - Toggle f-key keybindings on

Ctrl + a + $ - Show detailed status

Possibly deprecated

Shift + F3 - Focus on next split

Shift + F4 - Focus on previous split

Shift + F6 - Detach from the session, but do not logout

Ctrl + a :resize-pane -L 20 - Resize increase left of current window pane by 20 units (other available ones are -D, -R, -U)

Ctrl + a :clear-history - clear history in the viewing buffer


Untested

Alt + F5 - Toggle UTF-8

Ctrl + F5 - Reconnect any SSH/GPG sockets or agents


Nested remote session

Shift+F12 - Toggle the outer byobu's keybindings on or off

Ctrl+a a c - Create a new session

Links

Terminal Multiplexers