Hyperlink to be available on format table #21294

Closed
opened 2026-01-31 07:39:03 +00:00 by claunia · 8 comments
Owner

Originally created by @lr0217 on GitHub (Feb 22, 2024).

Description of the new feature/enhancement

Hyperlink feature is available in write-host and display list, but not in format table, would be nice to have

Proposed technical implementation details (optional)

Originally created by @lr0217 on GitHub (Feb 22, 2024). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement Hyperlink feature is available in write-host and display list, but not in format table, would be nice to have <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-ExternalNeeds-Tag-Fix labels 2026-01-31 07:39:03 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Feb 22, 2024):

This sounds like a request for the team that owns Format-Table, yea?

Presumably, you're relying on auto-detected URLs here, right? Not sure there's anything we can do Terminal-side to detect a URL that's broken into an arbitrary rectangle in the buffer. But Format-Table absolutely could manually wrap URLs with OSC 8, such that the entire cell is treated as a singular hyperlink

@zadjii-msft commented on GitHub (Feb 22, 2024): This sounds like a request for the team that owns `Format-Table`, yea? Presumably, you're relying on auto-detected URLs here, right? Not sure there's anything we can do Terminal-side to detect a URL that's broken into an arbitrary rectangle in the buffer. But `Format-Table` absolutely could manually wrap URLs with `OSC 8`, such that the entire cell is treated as a singular hyperlink
Author
Owner

@lr0217 commented on GitHub (Feb 22, 2024):

Yeah I am new to got hub
Can you share some info on how to send to the format-table team?

Thanks

El El jue, 22 de feb de 2024 a la(s) 11:29 a.m., Mike Griese <
@.***> escribió:

This sounds like a request for the team that owns Format-Table, yea?

Presumably, you're relying on auto-detected URLs here, right? Not sure
there's anything we can do Terminal-side to detect a URL that's broken into
an arbitrary rectangle in the buffer. But Format-Table absolutely could
manually wrap URLs with OSC 8, such that the entire cell is treated as a
singular hyperlink


Reply to this email directly, view it on GitHub
https://github.com/microsoft/terminal/issues/16750#issuecomment-1959927742,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BDCAI5QBRG6JIQ7RRQNMKFDYU56BPAVCNFSM6AAAAABDVLLEWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJZHEZDONZUGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

@lr0217 commented on GitHub (Feb 22, 2024): Yeah I am new to got hub Can you share some info on how to send to the format-table team? Thanks El El jue, 22 de feb de 2024 a la(s) 11:29 a.m., Mike Griese < ***@***.***> escribió: > This sounds like a request for the team that owns Format-Table, yea? > > Presumably, you're relying on auto-detected URLs here, right? Not sure > there's anything we can do Terminal-side to detect a URL that's broken into > an arbitrary rectangle in the buffer. But Format-Table absolutely could > manually wrap URLs with OSC 8, such that the entire cell is treated as a > singular hyperlink > > — > Reply to this email directly, view it on GitHub > <https://github.com/microsoft/terminal/issues/16750#issuecomment-1959927742>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/BDCAI5QBRG6JIQ7RRQNMKFDYU56BPAVCNFSM6AAAAABDVLLEWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJZHEZDONZUGI> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@237dmitry commented on GitHub (Feb 23, 2024):

This sounds like a request for the team that owns Format-Table, yea?

This works in other terminals:

[pscustomobject] @{ Name = 'Google'; Address = 'https://google.com' } | Format-Table
@237dmitry commented on GitHub (Feb 23, 2024): > This sounds like a request for the team that owns Format-Table, yea? This works in other terminals: ```powershell [pscustomobject] @{ Name = 'Google'; Address = 'https://google.com' } | Format-Table ```
Author
Owner

@elsaco commented on GitHub (Feb 23, 2024):

It works in windows terminal preview also:

ft_url

@elsaco commented on GitHub (Feb 23, 2024): It works in windows terminal preview also: ![ft_url](https://github.com/microsoft/terminal/assets/3933920/6d73c18d-b123-4b05-b57d-d30de2cce5a0)
Author
Owner

@zadjii-msft commented on GitHub (Feb 23, 2024):

And you know, this seems like it works "fine" for really long URLs too:

@([pscustomobject] @{ Name = 'Google'; Address = 'https://google.com' ; Whatever = 'you get the point' }, [pscustomobject] @{ Name = 'long url '; Address = 'https://github.com/microsoft/terminal/issues/16750#issuecomment-1961449890' ; Whatever = 'you get the point this one is really long and fills up a lot of space' } ) | Format-Table

image

Admittedly, they can get cut off if the table gets cut off, but that seems totally as expected.

Can you share a screenshot of what's not working/? (github will let you upload an image by pasting it from your clipboard, into the text box)

@zadjii-msft commented on GitHub (Feb 23, 2024): And you know, this seems like it works "fine" for really long URLs too: ```ps @([pscustomobject] @{ Name = 'Google'; Address = 'https://google.com' ; Whatever = 'you get the point' }, [pscustomobject] @{ Name = 'long url '; Address = 'https://github.com/microsoft/terminal/issues/16750#issuecomment-1961449890' ; Whatever = 'you get the point this one is really long and fills up a lot of space' } ) | Format-Table ``` ![image](https://github.com/microsoft/terminal/assets/18356694/08ab4583-e97c-452f-881f-cf5438bbe08e) Admittedly, they can get cut off if the table gets cut off, but that seems totally as expected. Can you share a screenshot of what's not working/? (github will let you upload an image by pasting it from your clipboard, into the text box)
Author
Owner

@lr0217 commented on GitHub (Feb 23, 2024):

Maybe the issue is that I am using this approach

https://lucyllewy.com/powershell-clickable-hyperlinks/

"e]8;;https://google.come\googlee]8;;e"

@lr0217 commented on GitHub (Feb 23, 2024): Maybe the issue is that I am using this approach https://lucyllewy.com/powershell-clickable-hyperlinks/ "`e]8;;https://google.com`e\google`e]8;;`e\"
Author
Owner

@carlos-zamora commented on GitHub (Feb 28, 2024):

Thanks! This seems like a /dup of https://github.com/PowerShell/PowerShell/issues/7744

@carlos-zamora commented on GitHub (Feb 28, 2024): Thanks! This seems like a /dup of https://github.com/PowerShell/PowerShell/issues/7744
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Feb 28, 2024):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@microsoft-github-policy-service[bot] commented on GitHub (Feb 28, 2024): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report! <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21294