Skip to content

Custom config for search engine stops at '&' #1

@Vagahbond

Description

@Vagahbond

I tried configuring this plugin to search stuff on nix packages repo.

Config(
  prefix: "?",
  engines: [
    Custom(
      name: "google",
      url: "google.com/search?q={}",
    ),
    Custom(
      name: "nix packages",
      url: "search.nixos.org/packages?query={}&channel=unstable",
    ),
  ],
)

Code above works, but the "channel=unstable" part is ignored.

When doing this :

Config(
  prefix: "?",
  engines: [
    Custom(
      name: "google",
      url: "google.com/search?q={}",
    ),
    Custom(
      name: "nix packages",
      url: "search.nixos.org/packages?channel=unstable&query={}",
    ),
  ],
)

It does not work with the query.

I believe the string is truncated when finding a &.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions