Module

server.debug.editor

Editor link support for debug page file:line URLs.

Functions

_editor_url 2 str | None
Build a clickable editor URL from CHIRP_EDITOR env var. Supports preset names …
def _editor_url(filepath: str, lineno: int) -> str | None

Build a clickable editor URL from CHIRP_EDITOR env var.

Supports preset names (vscode, cursor, sublime, textmate, idea, pycharm) or custom patterns with __FILE__ / __LINE__ placeholders.

ReturnsNone if CHIRP_EDITORis not set.

Parameters
Name Type Description
filepath str
lineno int
Returns
str | None