Hints
Rio's hints system allows you to quickly interact with text patterns in your terminal by displaying keyboard shortcuts over matching content. This feature allows for quick interaction with terminal content through keyboard shortcuts.
How it works
When you activate hint mode, Rio scans the visible terminal content for patterns you've configured (like URLs, file paths, or email addresses) and displays keyboard shortcuts over each match. You can then press the corresponding keys to perform actions on the matched text.
Basic Usage
- Activate hint mode: Press the configured key binding (default varies by hint type)
- Navigate: Type the letters shown over the hint you want to select
- Execute: The configured action (copy, open, paste, etc.) will be performed
Configuration
Hints are configured in your rio.toml file under the [hints] section:
[hints]
# Characters used for hint labels (should be easy to type)
alphabet = "jfkdls;ahgurieowpq"
# URL hint example
[[hints.rules]]
regex = "(https://|http://|ftp://)[^\u{0000}-\u{001F}\u{007F}-\u{009F}<>\"\\s{-}\\^⟨⟩`\\\\]+"
hyperlinks = true
post-processing = true
persist = false
[hints.rules.action]
command = "xdg-open" # Linux/BSD
# command = "open" # macOS
# command = { program = "cmd", args = ["/c", "start", ""] } # Windows
[hints.rules.mouse]
enabled = true
mods = []
[hints.rules.binding]
key = "O"
mods = ["Control", "Shift"]