ansi link for platform

Add a link (using OSC 8 escape sequence) to the given string.


> ansi link --text


  • for a data structure input, add links to all strings at the given cell paths
  • --text {string}: Link text. Uses uri as text if absent. In case of tables, records and lists applies this text to all elements


Create a link to open some file

> 'file:///file.txt' | ansi link --text 'Open Me!'
Open Me!

Create a link without text

> '' | ansi link

Format a table column into links

> [[url text]; [ Text]] | ansi link url