clide:// deep link handler — open files at a line (T-56)

clide://open?path=&line= translates (in parseArgv) to editor.open, so an OS
scheme invocation routes through the existing CLI→IPC path into the running
window — single-instance for free, no new code path. Registered the scheme:
linux/clide.desktop MimeType x-scheme-handler/clide (Exec already passes %U) and
macOS Info.plist CFBundleURLTypes. Parser validates the action/path/line.

Linux works end to end (the OS passes the URL as argv). macOS URL DELIVERY (the
AppDelegate openURLs callback → forward into this path) is a follow-up — the
scheme is registered, but the native hook needs a real macOS machine to verify,
so it's not shipped blind. Also drops a stray import in clide_markdown_test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-09 22:41:00 +02:00
co-authored by Claude Opus 4.8
parent 1411e19ab4
commit 4057286632
8 changed files with 99 additions and 2 deletions
+1 -1
View File
@@ -8,4 +8,4 @@ Terminal=false
Categories=Development;IDE;TextEditor;
Keywords=code;editor;ide;claude;terminal;
StartupWMClass=net.schweitz.clide
MimeType=inode/directory;
MimeType=inode/directory;x-scheme-handler/clide;