ssborbis / ContextSearch-web-ext

Search engine manager for modern browsers
349 stars 37 forks source link

Is it possible to export just the search engine list? #490

Closed 7peanuts closed 1 year ago

7peanuts commented 2 years ago

Because I use it on a few browsers, the appearance and other settings will be different.

And is it possible to select a part of the engine list for export when exporting?

ssborbis commented 2 years ago

Not currently, but this has been mentioned by another user. I'll see what can be done and post here when I have something to test.

ssborbis commented 2 years ago

I've been thinking, would it work just as well if the full config was exported, but on import, you were able to check boxes for what parts you wanted plus a replace / merge option?

7peanuts commented 2 years ago

That's okay.

My previous idea was to export the search template to be able to use it for other similar add-ons or software.

ssborbis commented 2 years ago

Well you can kinda do that through the console on the options page. You'll need to run some javascript on the array to get it in the correct format for other addons anyway.

The proper OpenSearch formatted engines are in the array userOptions.searchEngines

7peanuts commented 2 years ago

but on import, you were able to check boxes for what parts you wanted plus a replace / merge option?

Is this partial import function ready to use?

You'll need to run some javascript on the array to get it in the correct format for other addons anyway.

Is there any tools to export template strings? 20221019133210

ssborbis commented 2 years ago

Is this partial import function ready to use?

No. I've been working on other things

Is there any tools to export template strings?

Export how? What format are you wanting to get them into? Are you swapping between CS installs or between different addons?

7peanuts commented 2 years ago

What format are you wanting to get them into?

I want to export the templates and merge them into other CS engine managers. Since the partial import/export function are not yet implemented, I would like to ask what tools are available to read json files and extract and copy the search engines strings from it.

ssborbis commented 2 years ago

Merging configs makes things more complicated. I'm working on something, but I'll roll it out slowly because I don't want a bug to cause config errors. I'll let you know when I have something to test.

7peanuts commented 2 years ago

Merging configs makes things more complicated. I'm working on something, but I'll roll it out slowly because I don't want a bug to cause config errors.

Just take your time, this feature is optional. 😎 I will find a software that can extract the search engines strings in bulk instead.

ssborbis commented 2 years ago

Latest push to dev branch will allow this. It needs testing and has some limitations, but looks good so far.

Screenshot_2022-10-26_21-21-16

Use the same Import button, and it should recognize the file as a partial list import

ssborbis commented 2 years ago

Some fixes going up. It's a work in progress.

ssborbis commented 1 year ago

v1.46 has these enhancements. Open an new issue if you run into bugs