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

Allow multiple URLs for one search #8

Closed
mbaas2 opened this issue Mar 30, 2024 · 9 comments
Closed

Allow multiple URLs for one search #8

mbaas2 opened this issue Mar 30, 2024 · 9 comments

Comments

@mbaas2
Copy link

mbaas2 commented Mar 30, 2024

It might be nice if the url of a search could be an array of multiple strings - so that it would be possible to pass one search to multiple engines at once ;)

@Daydreamer-riri
Copy link
Owner

Hi, thanks for your advice. I think this feature will conflict with other features (such as search suggestions). Also, I want to keep the functionality of this plugin as simple as possible.

@DRYN07
Copy link

DRYN07 commented May 16, 2024

Oh man, I really support the multi-url idea. I think we don't need search suggestions or any other extras. I use another launcher where this feature exists and it is really a time saver. For my work, I use a lot of sites to search on, but for a very simple usage would be:

?? shop 'keyword' -> search on eBay, Amazon, etc. at once on the default browser's default provider.

I know this is not the plugin for it, but if you could make this happen in another plugin sometime, it would be very much appreciated.

If it matters, you could look at Fluent Search's Web Settings for ideas. I set the tag and the keyword and it searches on every site I gave. That app also started with only one url search but then they developed it to work with multi-url.

image

@Daydreamer-riri
Copy link
Owner

‌‌@DRYN07 Perhaps this could work. I wonder where these icons are sourced from?

@DRYN07
Copy link

DRYN07 commented May 17, 2024

It is basically a json file, i will attach it when I get back to my pc, maybe it will help :D

@DRYN07
Copy link

DRYN07 commented May 17, 2024

This is from an older version because in the new one it is encrypted. Sometimes there was a link for the icon but it is null now...

I think this was rewritten because when I first updated from 0.9 to 1.0, it was not encrypted but the js is changed.... I don't know if this code helps, but I made a multi search with the "shop" keyword. It searches on google and bing.

[
  {
    "SettingName":"AutomaticallyShowPreview",
    "Value":false
  },
  {
    "SettingName":"UseMobileWebsite",
    "Value":true
  },
  {
    "SettingName":"ImprovePerformance",
    "Value":false
  },
  {
    "SettingName":"OpenLinksInBrowser",
    "Value":false
  },
  {
    "SettingName":"WebPreviewZoomFactor",
    "Value":1
  },
  {
    "SettingName":"EnableApplication",
    "Value":true
  },
  {
    "SettingName":"SearchTagOnly",
    "Value":false
  },
  {
    "SettingName":"Search hotkey",
    "Value":{
      "Name":"Keyboard shortcut to start searching using Web",
      "HotKeys":[
        
      ]
    }
  },
  {
    "SettingName":"Search key gesture",
    "Value":null
  },
  {
    "SettingName":"Default suggestion provider",
    "Value":{
      "SelectedItem":"Google"
    }
  },
  {
    "SettingName":"Custom suggestion provider",
    "Value":""
  },
  {
    "SettingName":"Web search URLs",
    "Value":[
      {
        "Name":"Shop",
        "Image":{
          "Value":null
        },
        "Icon":null,
        "Tag":"shop",
        "Url":"https://www.google.hu/search?q=%s https://www.bing.com/search?form=\u0026q=%s",
        "SearchTagOnly":false,
        "SuggestionUrl":null
      }
    ]
  }
]

@Daydreamer-riri
Copy link
Owner

This feature will be added in the next version.

@Daydreamer-riri
Copy link
Owner

‌‌‌Hello @mbaas2 @DRYN07, the latest version now supports multiple URLs, see: https://github.com/Daydreamer-riri/PowerToys-Run-WebSearchShortcut?tab=readme-ov-file#urls

@mbaas2
Copy link
Author

mbaas2 commented May 27, 2024

Sorry, but there is a problem - even with your GoogleAndBingSearch: after typing "??GoogleA" and clicking "GoogleAndBing", a new browser window is opened with the default URL!

@Daydreamer-riri
Copy link
Owner

Hi @mbaas2, I haven't encountered a similar situation, everything is normal on my end.

I noticed that you used the word "Clicking," did you accidentally click on this context menu? This is a quick way to enter the domain:

image

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

3 participants