Skip to content

style_hyperlink(params=) #384

Closed
Closed

Description

@romainfrancois

related to rstudio/rstudio#10299

Can style_hyperlink() have a params=NULL that would target the [params] bit in the escape code https://iterm2.com/documentation-escape-codes.html

OSC 8 ; [params] ; [url] ST [text] OSC ] 8 ; ; ST

params then could be useful to control what kind of action is triggered by the link (open system browser, open help page, open something in viewer, navigate to file in the editor, ...).

Activity

  1. changed the title [-]`style_hyperlink()` and params[/-] [+]`style_hyperlink(params=)`[/+] on Jan 5, 2022
  2. added
    feature
    on Jan 5, 2022
  3. gaborcsardi commented on Jan 5, 2022

    @gaborcsardi
    Member

    Yes, definitely. Feel free to add it if you need it quickly, IDK when I'll work on cli again, soonish, but not this week, probably.

  4. gaborcsardi commented on Jan 5, 2022

    @gaborcsardi
    Member

    Btw. the cli::ansi_*() functions do not handle the hyperlink tags very well, or at all, so if we start using them, then that needs fixing as well.

  5. added a commit that references this issue on Jan 6, 2022
    d452cf6
  6. romainfrancois commented on Jan 6, 2022

    @romainfrancois
    ContributorAuthor

    Thanks. I added a pull request, nothing urgent as rstudio/rstudio#10299 will probably need some time to mature.

    also wondering if {.url in cli_text() etc ... should make links with style_hyperlink()

  7. gaborcsardi commented on Jan 6, 2022

    @gaborcsardi
    Member

    also wondering if {.url in cli_text() etc ... should make links with style_hyperlink()

    Good idea: #386.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions