Skip to content

make links displayed in terminal clickable - #7846

Merged
gtritchie merged 1 commit into
masterfrom
bugfix/terminal-clickable-links
Sep 24, 2020
Merged

gtritchie merged 1 commit into
masterfrom
bugfix/terminal-clickable-links

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Intent

  • Fixes IDE terminal no longer recognizing hyperlinks #6621
  • RStudio 1.1 and 1.2 supported clickable links in the terminal, but this was lost in RStudio 1.3 (xterm.js moved it out of core library into a separate add-on)
  • Also added a user preference for enabling/disabling clickable links in terminal

Approach

  • Load the xterm.js add-on that provides this functionality

QA Notes

Generate URL-formatted output in terminal, e.g. `echo "https://www.rstudio.com". Then hover mouse over it and click, should load in default browser.

Turn off the "Clickable web links" option in Global Options / Terminal, create a new terminal, and try again. Should not be a clickable link.

Note that like most terminal options changing this one does not modify existing terminal instances, you must either reload the UI or create a new terminal to see the impact.

- Fixes #6621
- Was supported in RStudio 1.1 and 1.2, but was lost in RStudio 1.3 because xterm.js moved it out of core library into a separate add-on
- Also added a user preference for enabling/disabling this feature
@gtritchie gtritchie added this to the v1.4 milestone Sep 21, 2020
@gtritchie
gtritchie merged commit 7fbdb81 into master Sep 24, 2020
@gtritchie
gtritchie deleted the bugfix/terminal-clickable-links branch January 21, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IDE terminal no longer recognizing hyperlinks

1 participant