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

multiple openers for a single rule #145

Closed
Linus789 opened this issue Sep 12, 2023 · 3 comments
Closed

multiple openers for a single rule #145

Linus789 opened this issue Sep 12, 2023 · 3 comments

Comments

@Linus789
Copy link
Contributor

Would it be possible to add multiple openers for a rule? For example with

[opener]
text = [
	{ exec = 'nano "$1"', block = true, display_name = "Edit with nano" },
]
browser = [
	{ exec = 'chromium "$@"', display_name = "Open in Chromium" },
]

[open]
rules = [
	{ name = "*.html", use = ["browser", "text"] },
]

it would show

Open in Chromium
Edit with nano

as options.

This would reduce the overhead of duplicating entries.

@Linus789
Copy link
Contributor Author

Would you accept a PR for this issue?

@sxyazi
Copy link
Owner

sxyazi commented Sep 13, 2023

Of course! I really like this proposal and want to see it happen, just not get around to completing it...

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants