Skip to content

Update markmarks extension - #28087

Merged
raycastbot merged 5 commits into
raycast:mainfrom
rmartins90:ext/markmarks
May 19, 2026
Merged

raycastbot merged 5 commits into
raycast:mainfrom
rmartins90:ext/markmarks

Conversation

@rmartins90

@rmartins90 rmartins90 commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Addresses feedback from #27915.

This updates MarkMarks so opening a bookmark uses the active supported browser when possible, instead of always falling back to the system default browser. It also improves bookmark search by ranking results across title, URL, description, and group path, with better support for multi-word and fuzzy queries.

Changes:

  • Open bookmarks in the active browser when Raycast is frontmost
  • Add Zen support when capturing the active tab
  • Improve fuzzy search ranking and keep the best match selected while searching
  • Update the README and changelog for the new behavior

Screencast

n/a

Checklist

- Merge branch \'contributions/merge-1779108326452\'
- Pull contributions
- Improve bookmark search ranking
- Open bookmarks in active browser
- Merge remote-tracking branch \'origin/main\'
- Add Zen browser support
- Add harness-neutral agent instructions
- Add CLAUDE.md and conductor.json setup script (raycast#1)
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: markmarks Issues related to the markmarks extension platform: macOS OP is author The OP of the PR is the author of the extension labels May 18, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

We're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days.

@rmartins90
rmartins90 marked this pull request as ready for review May 18, 2026 16:00
@greptile-apps

greptile-apps Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR improves the MarkMarks extension in two main areas: bookmark opening now targets the active supported browser (detected via Raycast's getFrontmostApplication when a browser is frontmost, or via the visible-process list when Raycast itself is frontmost), and bookmark search is replaced with a custom ranked fuzzy engine that scores across title, URL hostname, description, and group path.

  • browser.ts: Adds Zen support using Accessibility-based tab capture, introduces getActiveSupportedBrowser and openUrlInActiveBrowser for the open flow, refactors to a BROWSER_ALIASES lookup, and correctly defers or surfaces the Zen Accessibility permission error after exhausting other visible browsers.
  • search.ts: New weighted scoring module supporting exact, prefix, word-boundary, acronym, subsequence, and edit-distance (Levenshtein) matching; used via useMemo in list-bookmarks.tsx with filtering={false} and selectedItemId to keep the best result focused during typing.
  • list-bookmarks.tsx: Replaces Action.OpenInBrowser with the custom handleOpen / openUrlInActiveBrowser path, adds a fallback toast when the system default browser is used, and splits the view between a ranked flat list (while searching) and the original grouped view (when idle).

Confidence Score: 5/5

The changes are well-contained and address all prior reviewer feedback; no functional regressions or data-loss paths were identified.

The browser detection and open path are both covered by proper error handling with user-visible toasts. The Zen accessibility-error loop fix correctly collects the error, continues to other browsers, and only re-throws if no browser succeeded. The fuzzy search algorithm is implemented correctly and guarded against empty inputs.

No files require special attention.

Important Files Changed

Filename Overview
extensions/markmarks/src/lib/browser.ts Adds Zen support via Accessibility API, replaces AppleScript frontmost-app detection with Raycast's getFrontmostApplication, introduces openUrlInActiveBrowser and getActiveSupportedBrowser, and fixes the Zen accessibility-error loop escape issue from the prior review.
extensions/markmarks/src/lib/search.ts New fuzzy-search module with weighted multi-field scoring: exact, prefix, word, acronym, subsequence, and edit-distance (Levenshtein) matching. Algorithm is correct; matchesSearch is exported but not currently imported in the extension.
extensions/markmarks/src/list-bookmarks.tsx Switches to custom filtering (filtering=false), adds ranked search via useMemo, auto-selects the top result with selectedItemId, replaces Action.OpenInBrowser with openUrlInActiveBrowser, and extracts a shared renderBookmarkItem helper.
extensions/markmarks/src/lib/types.ts Adds "Zen" to the SupportedBrowser union type.
extensions/markmarks/src/add-bookmark.tsx Adds a toast when no supported browser is detected (null return from getActiveTabFromFrontmostBrowser), surfacing the case gracefully instead of doing nothing.
extensions/markmarks/CHANGELOG.md Adds Zen, active-browser open, and search improvement notes to v1.1.0; date updated to a hardcoded value rather than {PR_MERGE_DATE}.
extensions/markmarks/package.json Bumps @raycast/api peer dependency from ^1.104.1 to ^1.104.17.
extensions/markmarks/package-lock.json Lock file regenerated to reflect updated @raycast/api and transitive dependency bumps.

Reviews (4): Last reviewed commit: "Update CHANGELOG.md" | Re-trigger Greptile

Comment thread extensions/markmarks/CHANGELOG.md Resolved
Comment thread extensions/markmarks/src/lib/browser.ts Resolved
Comment thread extensions/markmarks/src/lib/browser.ts Resolved
Comment thread extensions/markmarks/src/lib/browser.ts Resolved
@0xdhrv 0xdhrv self-assigned this May 19, 2026

@0xdhrv 0xdhrv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved ✅

@raycastbot
raycastbot merged commit 86133cc into raycast:main May 19, 2026
3 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

almatkai pushed a commit to almatkai/raymes-extensions that referenced this pull request Jul 13, 2026
* Update markmarks extension

- Merge branch \'contributions/merge-1779108326452\'
- Pull contributions
- Improve bookmark search ranking
- Open bookmarks in active browser
- Merge remote-tracking branch \'origin/main\'
- Add Zen browser support
- Add harness-neutral agent instructions
- Add CLAUDE.md and conductor.json setup script (#1)

* Fix MarkMarks lockfile

* Address MarkMarks review feedback

* Keep trying browsers after Zen permission errors

* Update CHANGELOG.md

---------

Co-authored-by: raycastbot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: markmarks Issues related to the markmarks extension OP is author The OP of the PR is the author of the extension platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants