Navigate to hyperlinks using the keyboard #17496

Open
opened 2026-01-31 05:44:17 +00:00 by claunia · 0 comments
Owner

Originally created by @carlos-zamora on GitHub (May 16, 2022).

Description of the new feature/enhancement

Windows Terminal supports automatic detection of hyperlinks and allows you to open the hyperlink using your mouse (specifically ctrl+clicking the link). I've realized that there's no way to do this using only the keyboard.

Once mark mode lands, the solution is a little better, but still far from perfect and on par. The user would be able to navigate to the text with the hyperlink, create a selection that encompasses it, copy the URL, then manually open it in their preferred web browser.

What if we could make this a nicer experience? Consider this...

  1. enter mark mode
  2. tab (or shift+tab) to navigate to these hyperlinks
  3. when you've navigated to the hyperlink, a selection is created that encompasses the relevant hyperlink.
  4. enter can be used to invoke the hyperlink directly

Some corner cases...

  • what if enter is bound to an action (like "copy")? --> prefer the action
  • what if we add more bookmark-like things like "prompt position" or user-configured bookmarks --> might as well navigate to them too? I'm thinking these can be tab stops.
Originally created by @carlos-zamora on GitHub (May 16, 2022). # Description of the new feature/enhancement Windows Terminal supports automatic detection of hyperlinks and allows you to open the hyperlink using your mouse (specifically ctrl+clicking the link). I've realized that there's no way to do this using only the keyboard. Once mark mode lands, the solution is a little better, but still far from perfect and on par. The user would be able to navigate to the text with the hyperlink, create a selection that encompasses it, copy the URL, then manually open it in their preferred web browser. What if we could make this a nicer experience? Consider this... 1. enter mark mode 2. <kbd>tab</kbd> (or <kbd>shift+tab</kbd>) to navigate to these hyperlinks 3. when you've navigated to the hyperlink, a selection is created that encompasses the relevant hyperlink. 4. <kbd>enter</kbd> can be used to invoke the hyperlink directly Some corner cases... - what if <kbd>enter</kbd> is bound to an action (like "copy")? --> prefer the action - what if we add more bookmark-like things like "prompt position" or user-configured bookmarks --> might as well navigate to them too? I'm thinking these can be tab stops.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17496