ansi link
for platform> ansi link {flags} ...rest
--text, -t {string}
: Link text. Uses uri as text if absent. In case of tables, records and lists applies this text to all elements...rest
: for a data structure input, add links to all strings at the given cell pathsinput | output |
---|---|
list<string> | list<string> |
record | record |
string | string |
table | table |
Create a link to open some file
>'file:///file.txt'|ansi link--text'Open Me!'
OpenMe!
Create a link without text
>'https://www.nushell.sh/'|ansi link
https://www.nushell.sh/
Format a table column into links
> [[urltext]; [https://example.comText]] |ansi linkurl
Tips: Command ansi link
was not included in the official binaries by default, you have to build it with --features=extra
flag
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/ansi_link.html