Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Dir add hyperlink #1052

Open
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

onaforeignshore
Copy link
Contributor

This PR adds support for hyperlinking of folders to terminals that support it.

This will require extensive testing and feedback, so please feel free to test it :)

Implements #890 on the new code base (as requested in #857)

@@ -22,7 +22,7 @@
################################################################

# Define the version number. This will make it easier to support as users can report this with tickets.
readonly P9K_VERSION="0.7.0"
declare -g P9K_VERSION="0.7.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this change need to be made in this PR for the functionality to work?

@bhilburn
Copy link
Member

bhilburn commented Nov 5, 2018

Wow, @onaforeignshore! Nice work getting this implemented so quickly onto next following the discussion in #857!

Copy link
Member

@dritter dritter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me. My only concerns are:

  • does this get correctly counted when using the zero pattern (local zero='%([BSUbfksu]|([FB]|){*})')? This is used in truncate_with_package_name strategy, and probably in the newline segment improvement..
  • does this work in all terminals?

Second thought: maybe this is interesting for other agents as well. I am thinking of a segment that reads the to url out of git or a a package.json..

@stuaxo
Copy link

stuaxo commented Mar 3, 2019

@dritter

In non-supported terminals this should just not show up.

General url support would be great if it'll work.

romkatv added a commit to romkatv/powerlevel10k that referenced this pull request Jun 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants