feat: add opener2 plugin wrapping tauri-plugin-opener#3034
Merged
Conversation
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
✅ Deploy Preview for hyprnote-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for howto-fix-macos-audio-selection canceled.
|
✅ Deploy Preview for hyprnote ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Add open_url, open_path, and reveal_item_in_dir commands - Remove placeholder ping command - Update TypeScript bindings with new commands - Update permissions for new commands Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
….devin.ai/proxy/github.com/fastrepl/hyprnote into devin/1768356817-opener2-plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new
opener2plugin that wraps Tauri'stauri-plugin-opener. The plugin exposes the same set of commands as the underlying opener plugin without scope handling.The plugin includes:
open_url- Open a URL with the default or specified browseropen_path- Open a file/path with the default or specified applicationreveal_item_in_dir- Reveal a file in the system file managerOpener2PluginExt) for accessing the plugin from app handlesNote: Scope handling is intentionally skipped for now per requirements.
Updates since last revision
Migrated all
@tauri-apps/plugin-openerusages in the desktop app to use the newopener2plugin:apps/desktop/srcopenerCommands.openUrl(url, null),openerCommands.openPath(path, null),openerCommands.revealItemInDir(path)capabilities/default.json- removed old opener permissions (opener:default,opener:allow-open-url,opener:allow-open-path) and kept onlyopener2:defaultwithparameter toopenWithsincewithis a reserved keyword in JavaScript/TypeScriptfs2:defaultpermission)Review & Testing Checklist for Human
https://**,mailto:*,obsidian://**and paths to$DATA/hyprnote/**/*,$APPDATA/**/*,$DOWNLOAD/**/*. The newopener2:defaulthas no such restrictions.ONBOARDING=0 pnpm -F desktop tauri devopenUrl- auth sign-in, billing checkout, mailto links, LinkedIn profiles, changelog linkopenPath- exported PDFs, transcripts, local STT models directoryrevealItemInDir- session reveal in finder, data source revealNotes