-
Notifications
You must be signed in to change notification settings - Fork 68
Open
Description
When using a template with a hyperlink at the end, if the the line is truncated the link its closed correctly.
gh api notifications --template '{{tablerow "Reason" "When" "Repo" "Title" -}}
{{ range . -}}
{{tablerow (.reason | autocolor "cyan") (timeago .updated_at) (.repository.full_name) (hyperlink "https://github.com/notifications" (.subject.title | autocolor "yellow")) -}}
{{end -}}'Below output is from redirecting to a file, and using sed -n l0 file
With a the available space in terminal window the link is closed correctly:
\033]8;;https://github.com/notifications\033\\build(deps): bump pre-commit helm-docs to v1.13.0\033]8;;\033\\$
When the terminal is too small, the link isn't closed
\033]8;;https://github.com/notifications\033\\build(deps):...$
Therefore turning everything after that in terminal too a link, running the following clears it printf '\e]8;;'
Metadata
Metadata
Assignees
Labels
No labels