Skip to content

Support "Anchor" ANSI escape extension #1941

Closed

Description

@hadley

https://www.iterm2.com/documentation-escape-codes.html

This would be extremely useful if it supported both remote urls and local files (a la traceback). For example, we could hyperlink testthat failures to the file and line where the failure occurred.

See also: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

Activity

  1. self-assigned this
    on Jan 11, 2018
  2. kevinushey commented on Jan 11, 2018

    @kevinushey
    Collaborator

    We could also parse common formats for error messages. testthat output is typically of the form:

    test-file.R:5: error: bad things happened
    

    and it should be relatively easy to detect lines of that form. (hopefully the error formatting here isn't going to change any time soon)

  3. removed their assignment
    on Oct 8, 2019
  4. stale commented on Feb 5, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  5. added
    stale
    on Feb 5, 2021
  6. stale commented on Feb 19, 2021

    @stale

    This issue has been automatically closed due to inactivity.

  7. removed
    stale
    on Oct 4, 2021
  8. 13 remaining items

  9. romainfrancois commented on Mar 11, 2022

    @romainfrancois
    Contributor

    Moving this to test, but until r-lib/cli#414 is dealt with, we need to set the R_CLI_HYPERLINKS environment variable, e.g.

    Sys.setenv("R_CLI_HYPERLINKS" = "true")
    cli::style_hyperlink("link", "http://www.example.org")

    because we only set the RSTUDIO_CLI_HYPERLINKS, alternatively we can use the dev version of cli (with this pr merged r-lib/cli#438):

    pak::pak("r-lib/cli")
  10. self-assigned this
    on Mar 14, 2022
  11. jgutman commented on Mar 18, 2022

    @jgutman
    Contributor

    Verified using RStudio Desktop 2022.06.0-daily+208 and the latest CLI from Github 3.2.0.9000 2022-03-14 Github (r-lib/cli@476cf06)
    On Mac or 12.2.1.

  12. jgutman commented on Mar 18, 2022

    @jgutman
    Contributor

    Followup issue: #10803

  13. dhicks commented on Jan 10, 2024

    @dhicks

    I'm wondering about the status of this? Marked as closed nearly two years ago, but the followup issue is a bug about opening links in the Viewer pane?

  14. ronblum commented on Jan 11, 2024

    @ronblum
    Contributor

    @dhicks Are you seeing this problem again? Or are asking about followup issue #10803?

  15. dhicks commented on Jan 11, 2024

    @dhicks

    I ended up in this comment because I was wishing URLs in console output were clickable. A web search took me to #2530 , which was closed in favor of this issue.

  16. hadley commented on Jan 11, 2024

    @hadley
    MemberAuthor

    @dhicks it is implemented. As an R user, the easiest way to produce these links is with the cli package: https://cli.r-lib.org/reference/links.html

  17. dhicks commented on Jan 11, 2024

    @dhicks

    Ahh okay, so it's not quite iTerm's "any URL anywhere is clickable." Thanks for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions