ssborbis / ContextSearch-web-ext

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

I can't modify the templates #476

Closed Saectar closed 2 years ago

Saectar commented 2 years ago

I had originally added a couple of sites using the {selectdomain} template; later I wanted to change them to {searchTerms}; however, when I display the ContextSearch web-ext menu by clicking the add-on icon in Mozilla Firefox, the sites still have the {selectdomain} template.

It should be noted that if I use the opposite click on the page, the sites are shown to me with the correct template; this problem is only present when pulling down the menu from the add-on icon.

01 02 03 04

Thanks for the answers.

ssborbis commented 2 years ago

I think I know what's going on. Can you export & zip your config and drop it here? I can use it to hopefully make a fix and repair it for you.

ssborbis commented 2 years ago

Actually, you can probably repair it yourself from the console.

  1. Open the CS options page
  2. Open the console ( Ctrl+Shift+K )
  3. Enter the following commands
findNodes(userOptions.nodeTree, n => n.type === "siteSearchFolder").forEach( n => n.type = "searchEngine");
saveOptions();

Basically, this command recasts any engines that were branded as type "siteSearchFolder" back to the generic type "searchEngine". I think the problem occurs when engines are re-arranged via the tiled menus. This should solve your issue, at least until you rearrange again. I have a fix (hopefully) ready for the next release.

Saectar commented 2 years ago

It works! Thanks.

ssborbis commented 2 years ago

1.39 going up now. That should fix this issue from showing up again. Re-open if you have any further issues.