Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L liquidprompt
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Johann Dreo
  • liquidprompt
  • Merge requests
  • !668

Add hyperlinks for directories in path

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Johann Dreo requested to merge feature/url-links into master May 01, 2021
  • Overview 6
  • Commits 1
  • Pipelines 0
  • Changes 2

Created by: Rycieos

Add a _lp_create_link() function that turns a URL and text into a operating system command sequence for a clickable hyperlink in the terminal. See https://github.com/mintty/mintty/wiki/CtrlSeqs#hyperlinks for details.

Add sections of the current path as hyperlinks, with the "file://" protocol.

Remaining questions:

  • Should links be added for other objects in the prompt? I can't think of any good ideas, other than VCS branches linking to the remote site copy of the branch. Or maybe, since Python virtualenvs IDs are nothing more than their path, they could be done the same as the path sections.
  • Should there be ENABLE config options for each type of link?
  • Should it be enabled or disabled by default?
  • Should it be scoped to controlled by themes, or by Liquidprompt internals? (this current implementation uses it only in internals, not at the default theme level)
  • Needs docs written.
  • Needs specific test coverage.

Resolves #659

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/url-links