Hyperlinks
Rio terminal supports opening hyperlinks from the terminal.
Configuration
As of Rio 0.2.20, hyperlink hover keys are configurable through the hints system. You can customize which modifier keys trigger hyperlink highlighting and activation.
Default Behavior
By default, Rio uses:
- macOS:
Commandkey - Windows/Linux/BSD:
Altkey
Custom Configuration
You can configure custom modifier keys in your config.toml:
[hints]
rules = [
{
regex = "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+",
hyperlinks = true,
post-processing = true,
persist = false,
action = { command = "open" },
mouse = { enabled = true, mods = ["Shift"] }, # Use Shift key instead
binding = { key = "O", mods = ["Control", "Shift"] }
}
]
Available modifier keys:
"Shift"- Shift key"Control"or"Ctrl"- Control key"Alt"- Alt key"Super","Cmd", or"Command"- Super/Command key
You can combine multiple modifiers: mods = ["Control", "Shift"]
MacOS
To activate hyperlink feature hold Command key when hovering a link (or your configured modifier):
