Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wrap OSC8 formatting into a helper function #1402

@stacksjb

Description

@stacksjb

Instead of the four separate functions (currently), make a helper:

fn format_osc8_link(url: &str, text: &str) -> String {
    format!("\x1B]8;;{url}\x07{text}\x1B]8;;\x07")
}

THen could call it like this

format_osc8_link(url, "[link]")
format_osc8_link(url, url)
format_osc8_link(url, task_id)

Metadata

Metadata

Assignees

Labels

first-issueA great issue for newcomers to fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions