bindings
You can see the default default key bindings
Rio allows you to add new keybindings and overwrite any default key bindings.
Keybinds are built using the following trigger fields:
Name | Description |
---|---|
key | The key pressed |
with | Modifier keys |
mode | Terminal mode |
Whom can be be combined with the following effect fields:
Name | Description |
---|---|
action | Predefined Rio actions |
bytes | Write byte sequence |
text | Write text sequence |
[bindings]
keys = [
{ key = "q", with = "super", action = "Quit" },
# Bytes[27, 91, 53, 126] is equivalent to "\x1b[5~"
{ key = "home", with = "super | shift", bytes = [27, 91, 53, 126] },
# Remove existing keybind
{ key = "v", with = "control | shift", action = "none" },
]
Key
Each value in key binding will specify an identifier of the key pressed:
a-z
0-9
F1-F24
tab
esc
home
space
delete
insert
pageup
pagedown
end
back
up
down
left
right
@
colon
.
return
[
]
;
\\
+
,
/
=
-
*
numpadenter
numpadadd
numpadcomma
numpaddivide
numpadequals
numpadsubtract
numpadmultiply
numpad1
numpad2
numpad3
numpad4
numpad5
numpad6
numpad7
numpad8
numpad9
numpad0
Action
Execute a predefined action in Rio terminal.
Basic Actions
Action | Description |
---|---|
None | |
ReceiveChar | |
ToggleVIMode | |
Paste | Paste command |
Copy | |
OpenConfigEditor | |
ResetFontSize | |
IncreaseFontSize | |
DecreaseFontSize | |
Run(string) | Example: Running command Run(code) or Run(code ~/.config/rio/config.toml) |
PasteSelection | |
ClearSelection |
Window Actions
Action | Description |
---|---|
CreateWindow | |
Quit |
Pane Actions
Action | Description |
---|---|
SplitHorizontally | |
SplitVertically | |
ClosePane |
Tab Actions
Action | Description |
---|---|
CreateTab | |
CloseTab | |
CloseUnfocusedTabs | |
SelectPrevTab | |
SelectNextTab | |
SelectLastTab | |
SelectTab(tab_index) | Example: Select first tab SelectTab(0) , second tab SelectTab(1) |
Scroll Actions
Action | Description |
---|---|
Scroll(int) | Example: Scroll up 8 lines Scroll(8) or scroll down 5 lines Scroll(-5) |
ScrollPageUp | |
ScrollPageDown | |
ScrollHalfPageUp | |
ScrollHalfPageDown | |
ScrollToTop | |
ScrollToBottom |