Skip to content

Support opening HTML links externally in Glimpse#6

Merged
HazAT merged 3 commits intoHazAT:mainfrom
joemccann:main
Mar 17, 2026
Merged

Support opening HTML links externally in Glimpse#6
HazAT merged 3 commits intoHazAT:mainfrom
joemccann:main

Conversation

@joemccann
Copy link
Contributor

Summary

Add support for opening clicked web links in external browsers from Glimpse windows.

Changes

  • Added native Swift flags and config handling:
    • --open-links
    • --open-links-app <path>
    • openLinks / openLinksApp behavior for http/https links
  • Intercepted WKWebView link navigation to route link clicks to external browser
    handling.
  • Updated Node wrapper and CLI parsing:
    • src/glimpse.mjs options: openLinks, openLinksApp
    • bin/glimpse.mjs flags: --open-links, --open-links-app
  • Added regression coverage:
    • test/open-links.test.mjs validates argument mapping
  • Updated integration test to include the new option usage.
  • Docs and metadata updates:
    • README.md, skills/glimpse/SKILL.md, package.json
    • Added changelog note in CHANGELOG.md

Verification

  • npm run build
  • npm test

@HazAT HazAT merged commit faf4ff0 into HazAT:main Mar 17, 2026
HazAT added a commit that referenced this pull request Mar 17, 2026
Two community contributions ship in this release:

- Menu bar mode by @vtemian (#5): statusItem() API creates a menu bar
  icon with a popover WebView, including setTitle() and resize() methods.

- Open links externally by @joemccann (#6): openLinks/openLinksApp options
  let clicked links escape the WebView to the system browser or a specific
  app. Also adds GLIMPSE_BINARY_PATH env var override.

Folds the previous Unreleased section into the 0.4.0 changelog entry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants