#ansi-term #terminal #url #ansi #cli

app osc8er

Convert file or url to be clickable on supported terminal emulators by tagging it using OSC 8

4 releases

0.1.3 Feb 17, 2025
0.1.2 Feb 17, 2025
0.1.1 Jan 20, 2025
0.1.0 Jan 20, 2025

#232 in Command-line interface

MIT license

9KB
159 lines

osc8er

Build Status Crate Docs

CLI tool to convert file path or URL to terminal hyperlinks on terminal emulators that support OSC 8 hyperlinks.

License

MIT Licence Copyright (c) 2025 Azamshul Azizy

Usage

Via pipes

find . -type f | osc8er

Via arguments

osc8er -a README.md

Full options

Usage: osc8er [OPTIONS] {ARGS...}

Options:
    -p, --pipe          input from stdin/pipe (default, mutually exclusive
                        with --args)
    -a, --args          input from argument (mutually exclusive with --pipe)
    -f, --file          treat input as file link (default, mutually exclusive
                        with --url)
    -u, --url           treat input as URL (mutually exclusive with --file)
    -r, --resolve       resolve relative file path from current working
                        directory
    -h, --help          print this help menu

Dependencies

~1.5MB
~21K SLoC