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

Consider merging engines and quteromarks #44

Open
cortsf opened this issue Nov 13, 2024 · 0 comments
Open

Consider merging engines and quteromarks #44

cortsf opened this issue Nov 13, 2024 · 0 comments

Comments

@cortsf
Copy link
Owner

cortsf commented Nov 13, 2024

Allow these merged engines/quteromarks rules to be declared with or without the empty {} replacement braces, such that

  1. Using this rule would generate the equivalent of a search engine, because it makes use of the empty pair of curly braces:

    [[quterofi_rules]]
    qr_template = "github_repos"
    qr_alias = "gh.{alias}" 
    qr_url = "https://github.com/search?q=repo%3A{user}%2F{repo}+{}&type=issues"
    
  2. Using this rule would generate the equivalent of a quickmark/quteromark, since there is no empty pair of curly brances on the url

    [[quterofi_rules]]
    qr_template = "github_repos"
    qr_alias = "gh.{alias}" 
    qr_url = "https://github.com/{user}/{repo}"

Also consider extending engines to allow any arbitrary number of arguments using placeholders with numbered indexes ({0}, {1}, etc)

[[quterofi_rules]]
qr_template = "some_template_name"
qr_alias = "some.{alias}" 
qr_url = "https://www.something.com/making_use_of_{1}_and_also_of_{0}_and_of_{1}_again"
@cortsf cortsf changed the title Consider merging engines and quickmarks Consider merging engines and quteromarks Nov 13, 2024
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