bindings
You can see the default default key bindings
Rio allows you to add new keybindings and overwrite any default key bindings.
Bindings 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 | Copy command |
OpenConfigEditor | Open configuration file on configured editor property |
ResetFontSize | |
IncreaseFontSize | |
DecreaseFontSize | |
Run(string) | Example: Running command Run(code) or Run(code ~/.config/rio/config.toml) |
PasteSelection | |
ClearSelection | |
CreateWindow | Create a Rio window instance |
Quit | Exit Rio |
ToggleFullscreen | Toggle fullscreen |
Split Actions
Action | Description |
---|---|
SplitRight | Create a split by right side |
SplitDown | Create a split by under current pane |
SelectNextSplit | Select next split |
SelectPrevSplit | Select previous split |
CloseSplitOrTab | Close split, if split is the last then will close the tab |
Tab Actions
Action | Description |
---|---|
CreateTab | |
CloseTab | |
CloseUnfocusedTabs | |
SelectPrevTab | |
SelectNextTab | |
SelectLastTab | |
MoveCurrentTabToPrev | Move the current focused tab to the previous slot if any is available |
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 |
Search Actions
Action | Description |
---|---|
SearchForward | |
SearchBackward | |
SearchConfirm | |
SearchClear | |
SearchFocusNext | |
SearchFocusPrevious | |
SearchDeleteWord | |
SearchHistoryNext | |
SearchHistoryPrevious |