Expand description
URL and file opening/action utilities. URL and file path opening/action utilities.
§Error Handling Convention
Public functions in this module return Result<(), String> (simple string
errors for UI display) rather than anyhow::Error. New helper functions
added to this module should follow the same Result<T, String> pattern so
callers can surface the error message directly to the user without conversion.
Functions§
- ensure_
url_ scheme - Ensure a URL has a scheme prefix, adding
https://if missing. - expand_
link_ handler - Expand a link handler command template by replacing
{url}with the given URL. - open_
file_ in_ editor - Open a file path in the configured editor, or a directory in the file manager
- open_
url - Open a URL in the configured browser or system default.
- shell_
escape - Simple shell escape for file paths (wraps in single quotes)