feat: OSC 8 hyperlinks in terminals
Cells carrying an OSC 8 hyperlink get a dotted underline, and Ctrl/Cmd+ click opens the link. Because a link's text can say anything, hovering one always shows its real target (and says when it won't be opened). Both OSC 8 and plain-text URLs now open through the web-only check, so remote output can't launch file:, ftp: or custom-scheme handlers (plain text ftp:// links used to be opened).
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ Use Nexus Terminal when you need to:
|
||||
- Find in terminal output, with case-sensitive and regular-expression options and a match counter.
|
||||
- Copy with Ctrl/Cmd+C when text is selected (otherwise it sends an interrupt), paste with Ctrl/Cmd+V.
|
||||
- Double-click selects a word, triple-click selects a line, Shift-click extends a selection.
|
||||
- Ctrl/Cmd-click a web link to open it in your browser.
|
||||
- Ctrl/Cmd-click a web link to open it in your browser, including OSC 8 hyperlinks (from `ls --hyperlink`, `git`, compilers…), which are underlined with a dotted line and show their real target on hover. Only http(s) links open.
|
||||
- Shift+PageUp/PageDown/Home/End and the mouse wheel scroll the scrollback; on the alternate screen the wheel sends arrow keys, so `tmux`, `screen` and `byobu` scroll naturally.
|
||||
- Context menu with Copy, Paste, Select All, Find, Send Snippet, Port Forwards, Split Right, Split Down, Export Output, Clear and Reset.
|
||||
- Export the whole scrollback as plain text.
|
||||
|
||||
+1
-1
@@ -249,7 +249,7 @@ Shells that also report their working directory (OSC 7; fish, and zsh/bash with
|
||||
- **Copy**: select text and press **Cmd+C** / **Ctrl+C**. With nothing selected, **Ctrl+C** sends an interrupt as usual.
|
||||
- **Paste**: **Cmd+V** / **Ctrl+V**. Pastes are bracketed when the remote application asks for it.
|
||||
- **Select**: drag to select, double-click for a word, triple-click for a line, Shift-click to extend.
|
||||
- **Links**: hold **Cmd** / **Ctrl** and click a web link to open it in your browser.
|
||||
- **Links**: hold **Cmd** / **Ctrl** and click a web link to open it in your browser. Programs can also print real hyperlinks (OSC 8, as `ls --hyperlink` and many build tools do); these have a dotted underline, and hovering one shows where it really points. Only http(s) links are opened.
|
||||
- **Scroll**: the mouse wheel, or **Shift+PageUp**, **Shift+PageDown**, **Shift+Home** and **Shift+End**. On the alternate screen (for example in `tmux`, `screen`, `byobu` or `less`) the wheel sends arrow keys instead.
|
||||
- Applications that use the mouse (such as `htop`, `vim` or `tmux` with mouse mode) receive mouse clicks and the wheel directly.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user