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

Implicit trivial rules #50

Open
cortsf opened this issue Dec 4, 2024 · 0 comments
Open

Implicit trivial rules #50

cortsf opened this issue Dec 4, 2024 · 0 comments

Comments

@cortsf
Copy link
Owner

cortsf commented Dec 4, 2024

To declare simple search engines and quteromarks we need these two trivial rules

[[engine_rules]]
er_template = "engines"
er_alias = "{alias}"
er_url = "{url}"

[[quteromark_rules]]
qr_template = "quteromarks"
qr_alias ="{alias}"
qr_url = "{url}"

Make these rules implicit, allowing to define simple engines and quteromarks (example below) without needing to have such trivial rules explicitly declared in the toml file. This is specially useful for quteromarks since the quteromarks menu is made to work specifically with this rule, which the user has to declare by himself.

[[engines]]
alias = "gh"
url = "https://github.com/search?q={}"

[[quteromarks]]
alias="local"
url="http://127.0.0.1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant