Replies: 1 comment
-
Hey @xxxserxxx thank you for the detailed description. Yes, it's possible and I would like to do it as well. I am moving this discussion to issue so it help me to keep track |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
rio has support for opening hyperlinks via the mouse. I'd like this function to be available without having to use the mouse.
This feature exists in Alacritty "hints." When a hot-key is pressed, the terminal searches in the viewable frame for URLs and enters a hints mode, where the matches are highlighted each with a key sequence. The user can then type a sequence to select one of the matches to trigger an action on the match. Hint mode is common in keyboard-diven applications: in addition to Alacritty, Kitty, surf, luakit, and vimb (the latter three keyboard-driven web browsers) all have hint modes that function similarly. It'd be a valuable addition to Rio.
The Hints section in the documentation for Alacritty describes this. As in Alacritty, this feature would allow configurable hint characters, configurable regexp, and configurable command. It'd be nice if a different hotkey could be bound to different regexps and commands; hhis would allow the user to configure matching URLs, email addresses, filesystem paths, or whatever, with custom actions for each type. However, commonly in programs providing hints only a single pattern/command can be configured.
Following the Rio configuration pattern, I would imagine a new function called
Hints
similar toSearchForward
that could be bound to a key. This would use a[hints]
configuration section, withhints.alphabet
,hints.regexp
, andhints.command
attributes. When invoked, the command would: perform the buffer search (in the visible view); highlight the matches and assign a unique key sequence built from thehints.alphabet
characters to each; and enter an input mode where keystrokes incrementally matchinghints.alphabet
when uniquely matching a sequence triggers thehints.command
with the match as the argument. The global user-defined escape key would exit hints mode. Users would bind this by configuring one (or more)binding.keys
withHints
as the action.Beta Was this translation helpful? Give feedback.
All reactions