Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] File explore context menu #7748

Closed
HuakunShen opened this issue Sep 4, 2023 · 4 comments
Closed

[feat] File explore context menu #7748

HuakunShen opened this issue Sep 4, 2023 · 4 comments

Comments

@HuakunShen
Copy link

Describe the problem

I would like to insert custom right-click context menu options when I right click within a file explorer.

I could not find this API in the current documentation or issue.

I found this issue about native context menu (#4338). The proposed tauri-plugin-context-menu works but only within the Tauri app.

Describe the solution you'd like

Add APIs for inserting items into file explorer context menu.

Here is an example of my Mac Finder context menu, all of the extra options are added by an app called iRightMouse.

It would be nice if we can do similar things, making Tauri apps much more powerful.

image

Alternatives considered

No response

Additional context

No response

@amrbashir
Copy link
Member

This is out of tauri scope. It is a niche use-case and an implementation detail of the app not the framework. If you feel like I am overlooking something, please let me know

@amrbashir amrbashir closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2023
@dukeeagle
Copy link

@HuakunShen do you intend to make a plugin that does this? Would love to discuss if so.

@HuakunShen
Copy link
Author

@dukeeagle I want this feature, but didn't have a chance to research on this yet.

@ok-nick
Copy link

ok-nick commented May 6, 2024

Hi, I implemented this for my app on macOS (currently). You can check out the project here and the finder extension code here and here.

I decided not to implement a "finder sync extension" because they require compiling a separate .appex program and you'd have to use IPC which can get cumbersome. Rather, I used (the less powerful) NSServices which you can find defined in my Info.plist file.

It looks something like this:
finder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants