#terminal #cli #convert-file #ansi #file-path #command-line-tool

app osc8er

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

4 releases

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

#389 in Command line utilities

Download history 182/week @ 2025-01-15 19/week @ 2025-01-22 6/week @ 2025-02-05 82/week @ 2025-02-12

180 downloads per month

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