Key Bindings
Key bindings are a way to map keyboard keys to Mudpuppy shortcut actions. The bindings are configured based on which tab is currently focused: the Mud list, or a connected MUD session.
Example
# Quit a MUD session with 'ctrl-x'
[[keybinding]]
keys = "ctrl-x"
action = "quit"
# Move to the previous MUD on the MUD list tab with 'j'
[[keybinding]]
mode = "mudlist"
keys = "j"
action = "mudlistprev"
# Move to the next MUD on the MUD list tab with 'k'
[[keybinding]]
mode = "mudlist"
keys = "k"
action = "mudlistnext"
Fields
Each key binding is defined in a [[keybinding]] TOML table in your config file. The following fields
are available for each key binding:
| Field | Optional | Type | Default | Examples |
|---|---|---|---|---|
| mode | True | String | "mudsession" | "mudsession", "mudlist" |
| keys | No | String | N/A | "ctrl-q", "shift-up", "f4" |
| action | No | String | N/A | "quit", "scrolltop", "toggle" |
mode
The tab type that must be in-focus for the key binding to be active.
The default is mudsession, meaning the key binding is only active when you're
on a MUD's session tab.
If you want a key binding to be active on the MUD list tab, set
mode = "mudlist" instead.
keys
The key or key combination that triggers the action. This can include modifiers by
separating them with a -. For example, ctrl-x, shift-up, or f4.
modifiers
The available modifiers are:
ctrlaltshift
keys
The available keys are:
space(space bar)enter(return key)esc(escape key)tab(tab key)backspace(backspace key)delete(delete key)insert(insert key)home(home key)end(end key)pageup(page up key)pagedown(page down key)up(up arrow key)down(down arrow key)left(left arrow key)right(right arrow key)f1throughf12(function keys)- all other normal singular keys, e.g. 'a-z', '0-9', punctuation, etc.
action
The shortcut action that will be taken when the keys are input.
For example, quit, scrolltop, or toggle.
Shortcuts
The available shortcuts (case insensitive) are:
Quit- Quit the current MUD sessionTabNext- Move to the next tabTabPrev- Move to the previous tabTabClose- Close the current tabTabSwapLeft- Swap the current tab with the one to the leftTabSwapRight- Swap the current tab with the one to the rightMudListNext- Move to the next MUD on the MUD list tabMudListPrev- Move to the previous MUD on the MUD list tabMudListConnect- Connect to the currently selected MUD on the MUD list tabToggleLineWrap- Toggle line wrapping config for the output bufferToggleEchoInput- Toggle echo input config for the output bufferHistoryNext- Move to the next input history entryHistoryPrev- Move to the previous input history entryScrollUp- Scroll up in the output bufferScrollDown- Scroll down in the output bufferScrollTop- Scroll to the top of the output bufferScrollBottom- Scroll to the bottom of the output buffer