Skip to main content

Module render

Module render 

Source
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)