CanisLupus / swift-selection-search

Swift Selection Search (SSS) is a simple Firefox add-on that lets you quickly search for some text in a page using your favorite search engines.
https://addons.mozilla.org/firefox/addon/swift-selection-search/
MIT License
213 stars 27 forks source link

Multisearch #240

Closed harryray33 closed 2 years ago

harryray33 commented 2 years ago

Is there a way of searching more than one engine at a time?

Thanks

CanisLupus commented 2 years ago

Yes! In the engines list you can use the "Add group" button at the bottom:

image

Then select which engines you want to add to that group and write a group name.

Clicking a group will open the search on all engines contained within. :)

harryray33 commented 2 years ago

Thanks, that useful, but is it limited to the engines that pop up? I would like to include some of the engines that I have added to Firefox

CanisLupus commented 2 years ago

You can add the engines from Firefox with the option right below the list :)

image

Please also take a look at the "Instructions" section at the top of the options page if you want to make your own search engines, as it can help a lot:

image

Cheers!

harryray33 commented 2 years ago

Thank you, what I meant was, can I add some of the engines I have into the add group section?

CanisLupus commented 2 years ago

Ah sorry I misunderstood. I actually forgot that this was a problem so it didn't cross my mind that that's what you meant. :)

Unfortunately SSS doesn't support adding engines imported from Firefox to groups because they can only open in "this tab" or "new tab" (browser API limitations). If it did, it would break the way all other engines in the group open, depending on your settings (i.e. they would get weird order and focus would go to the wrong one when you open the group).

You might be able to create your own engines that mimic the ones you have in Firefox, but I fully understand if you don't want to go through that process, especially if you have a lot of them.

harryray33 commented 2 years ago

Thanks, yes, I have quite a few engines...It's a shame about not being able to do this as the multi search is very useful. How would I go about creating engines in groups? I can't see a way to do this?

CanisLupus commented 2 years ago

You would first create any custom engines you'd like using the "Add engine" button, and then add them to a (new or existing) group. Also, to figure out how some sites work, please take a look at "I don't know how to add a particular site..." in the instructions. (Many sites are simple enough, but not all of them.)

harryray33 commented 2 years ago

It looks like I'll have to add the engines one at a time to the group... the problem is that the search url doesn't show up for my existing engines ([Browser] Engine imported from the browser) It could take a while. :0)

Agreed about some sites make it simple, my favourite way, and the quickest, is to right click in a search box. I don't think I can do that with this, is tat correct or am I missing something?

CanisLupus commented 2 years ago

the problem is that the search url doesn't show up for my existing engines ([Browser] Engine imported from the browser)

Yes, sadly the WebExtensions API doesn't let extensions see the URL of the browser engines, or any parameters. :(

Agreed about some sites make it simple, my favourite way, and the quickest, is to right click in a search box. I don't think I can do that with this, is tat correct or am I missing something?

You are correct. If I'm not mistaken, something like that would require the extension to recognize the way each website does their search, and there's no generic way.

I really wish the WebExt API would let us see the search engine URLs and parameters.