Skip to content

Add zoxide-plus extension - #27348

Closed
UnlockHomes wants to merge 4 commits into
raycast:mainfrom
UnlockHomes:ext/zoxide-plus
Closed

UnlockHomes wants to merge 4 commits into
raycast:mainfrom
UnlockHomes:ext/zoxide-plus

Conversation

@UnlockHomes

@UnlockHomes UnlockHomes commented Apr 22, 2026 •

Copy link
Copy Markdown

Description

Adds Zoxide Plus a Raycast extension that lets you jump straight to any folder on your Mac by name, powered by zoxide's frecency-ranked directory index.

Why another zoxide extension

There's an existing Zoxide extension in the store, but it filters on the full path: typing desk returns every directory whose path contains "desktop", which is noisy when you have many projects nested under ~/Desktop/…. Zoxide Plus matches on the folder name (the last path component) so short queries land on the folder you actually want. It also adds a few quality-of-life features the existing extension doesn't have (open in a configurable terminal/editor, boost score in place, Finder-aware "add path" command).

Commands

  • Jump to Folder — live-search your zoxide index. Results are re-queried from zoxide on every keystroke, so ranking stays accurate and respects frecency. Shows the score as an accessory pill and the total count in the section header.
    • Actions: Open in Finder (↵), Open in Terminal (⌘↵), Open in Editor (⌘⇧↵), Show in Finder (⌘F), Boost in Zoxide (⌘B, runs zoxide add on the highlighted path to bump its score), Copy Path (⌘.).
  • Add Path to Zoxide — adds a folder to the zoxide index without needing to cd into it.
    • If Finder has a selected item, it's added immediately (folder itself, or its containing folder if a file is selected).
    • Otherwise, a folder-picker form opens.

Preferences

Both the terminal and the editor are exposed as appPicker preferences so users can pick any installed app. Defaults are Terminal.app and Visual Studio Code.

Requirement

The extension shells out to the zoxide binary. The Jump to Folder empty state surfaces a brew install zoxide message if the binary isn't found at /opt/homebrew/bin/zoxide or /usr/local/bin/zoxide. The README also calls this out.

Screencast

zoxide-plus-1 zoxide-plus-2 zoxide-plus-3 zoxide-plus-4

Checklist

@raycastbot raycastbot added new extension Label for PRs with new extensions platform: macOS labels Apr 22, 2026
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

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

Once the PR is approved and merged, the extension will be available on our Store.

@UnlockHomes
UnlockHomes marked this pull request as ready for review April 22, 2026 19:32
@greptile-apps

greptile-apps Bot commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds a new Zoxide Plus extension that provides frecency-ranked directory search with folder-name matching, Finder integration, and configurable terminal/editor openers. The implementation is clean and well-structured — previous review concerns (hardcoded binary paths, stale module-level preference caching, changelog heading) have all been addressed.

Confidence Score: 5/5

Safe to merge — all remaining findings are P2 style suggestions with no correctness or reliability impact.

Prior P1 concerns are fully resolved. The two remaining comments are minor: a manual type annotation that could use the auto-generated Preferences type, and a missing Open Preferences shortcut in a degraded-state form. Neither affects runtime correctness.

No files require special attention.

Important Files Changed

Filename Overview
extensions/zoxide-plus/src/jump-to-folder.tsx Main search command using useExec with keepPreviousData; preferences correctly use auto-generated Preferences.JumpToFolder type; logic and error handling look solid.
extensions/zoxide-plus/src/lib/zoxide.ts Binary detection logic is solid with multiple install locations; one P2 issue with manual inline type on getPreferenceValues instead of using the auto-generated Preferences type.
extensions/zoxide-plus/src/add-path.tsx Finder-aware add command with form fallback; missing "Open Preferences" action in the zoxide-not-found state is a minor UX gap.
extensions/zoxide-plus/src/lib/finder.ts Clean helper that resolves the Finder selection to a directory path with proper error handling.
extensions/zoxide-plus/package.json Well-structured with $schema, correct categories, all three preferences properly declared, and dependencies match actual imports.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: extensions/zoxide-plus/src/lib/zoxide.ts
Line: 8

Comment:
**Manual inline type annotation for `getPreferenceValues`**

`getPreferenceValues<{ zoxidePath?: string }>()` is typed by hand rather than using the auto-generated `Preferences` type from `raycast-env.d.ts`. Since `zoxidePath` is declared as a global extension preference in `package.json`, the generated type already includes it, so this manual annotation is redundant and can silently drift out of sync if the preference schema changes.

```suggestion
  const { zoxidePath: customPath } = getPreferenceValues<Preferences>();
```

**Rule Used:** What: Don't manually type `getPreferenceValues()` ... ([source](https://app.greptile.com/review/custom-context?memory=61aa4fa9-b8e8-41b4-8b27-f888b95b75af))

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: extensions/zoxide-plus/src/add-path.tsx
Line: 63-69

Comment:
**Consider adding an "Open Preferences" action when zoxide is not found**

When `zoxidePath` is `null`, the `Form` renders only a `Form.Description` with no `ActionPanel`. Users know they need to either install zoxide or set a custom path, but have no in-extension shortcut to jump straight to preferences. Adding an `Action.OpenExtensionPreferences` action here would make the fix one keypress away, matching the UX of other Raycast extensions that detect missing configuration.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (3): Last reviewed commit: "Read zoxide binary path on every command..." | Re-trigger Greptile

Comment thread extensions/zoxide-plus/CHANGELOG.md Resolved
@UnlockHomes
UnlockHomes marked this pull request as draft April 24, 2026 07:58
@UnlockHomes
UnlockHomes marked this pull request as ready for review April 24, 2026 07:58
@UnlockHomes
UnlockHomes marked this pull request as draft April 24, 2026 08:24
@UnlockHomes
UnlockHomes marked this pull request as ready for review April 24, 2026 08:24
@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label May 8, 2026
@UnlockHomes

Copy link
Copy Markdown
Author

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

Still waiting for a review 🥲

@raycastbot raycastbot removed the status: stalled Stalled due inactivity label May 10, 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.

Thanks for your contribution ⁣⁠‌⁣‌⁣‌­‍⁣­­‌⁠⁣­⁣⁣‍‍‍⁣⁣‌‌‍‍‍‌‍‍⁠⁠⁣ 🔥

We already have an extension in the Store that deals with this. Could we consider enhancing the existing extension below instead of creating another one?

The core functionality here seems upstreamable into the existing extension:

  • Add a Search Mode preference:

    • Full Path
    • Folder Name (using basename(path) while preserving the original path for opening)
  • Additional actions/features:

    • configurable terminal/editor openers
    • Boost in Zoxide
    • better binary path override
    • Finder-aware Add Path

If there are unique features or workflows you’re aiming to add, we’d love to hear them and see if they can be integrated into this to avoid duplication and improve discoverability.

This would help avoid duplication and keep related functionality consolidated in one place.
As mentioned in our extension guidelines here ↗

@0xdhrv
0xdhrv marked this pull request as draft May 19, 2026 08:11
@0xdhrv 0xdhrv self-assigned this May 19, 2026
@mrpunkin

Copy link
Copy Markdown
Contributor

Hey there. I'd be happy to help integrate these into my existing Zoxide extension. I agree with @0xdhrv's take on what could be added as features and preferences to bolster what's already in place.

The core focus of mine when I wrote it was to mimic the cdi functionality that zoxide + fzf offer via the command line interface, but I see no reason having a Search Mode preference to allow folks to pick wouldn't provide value.

@UnlockHomes If you'd like to draft a pull request against raycast-zoxide go for it, or I can find some time to knock away at this when I'm able as well.

@mrpunkin mrpunkin mentioned this pull request Jun 7, 2026
5 tasks done
@mrpunkin

mrpunkin commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

@UnlockHomes I had some time to devote to getting the majority of your features into my existing extension. I left the path-based binary awareness due to prior discussions about how to allow for various environments, but the new action items, additional application preferences, and folder only / pure zoxide search mode were included. Once approved you should be able to use nearly identically to the extension you developed.

@UnlockHomes

UnlockHomes commented Jun 7, 2026 via email •

Copy link
Copy Markdown
Author

@mrpunkin

mrpunkin commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

@UnlockHomes No problem. All good additions, so great work on your part! Feel free to contribute directly in the future too.

@0xdhrv

0xdhrv commented Jun 11, 2026

Copy link
Copy Markdown
Member

Thanks a lot for your contribution and suggestion @UnlockHomes

Closing this as completed

@0xdhrv 0xdhrv closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants