Closed Parvares closed 1 year ago
For a brief sanity check, does the multi-line search work from the quick menu?
On the topic, I've been thinking a confirm popup would be a good idea for multi-line searches, when enabled. In other words, if you were to do a search on a block of text that had multiple lines, a YesNoCancel box would pop up, asking if you wanted the search to be multi-line ( search each line separately using the same engine ). What do you think?
No Mike, it doesn't seem working from anywhere... I think it would be better to have the option to activate it when needed from the settings or the context menu without the popup (and perhaps leading/trailing whitespaces should be removed). Thank you!
Hmm, ok a few things.
multilinesAsSeparateSearchesLimit
is the number of lines to search separately before asking for confirmation. In other words, if this is set to 4, then 3 lines won't get a popup, but 5 will ask if you really want to search every line separatelyPlease try searching again using the context menu using the example block of lines you provided using these settings
multilinesAsSeparateSearches: true multilinesAsSeparateSearchesLimit: 1
and see what happens.
Thanks, I've changed the limit from 10 to 1, but I don't see any changing from context menu... mumble mumble...
Hmm... what browser? Also, it might be useful if you posted your config for me to test. The code seem pretty basic, but maybe there's a conflict I'm not considering.
Oh, and did you get a confirm dialog when you tried to search multiple lines? Setting multilinesAsSeparateSearchesLimit: 1
should force it to pop up on every multi-line search.
Chrome, v. 114. No, I don't get a confirm dialog when I try to search multiple lines. Here are my settings, thanks.
Hi Mike, do you need something else?
Hi Mike, do you need something else?
Nope, I think i'm seeing the issues. I'll post here when I have a fix to test.
The potential fix is in the Master branch if you want to try sideloading. It is only intended to fix the quick menu issue.
In chrome variants, it seems the browser removes newlines from selected text when using the context menu. Separate issue I'll try to address later. For now, the QM appears to be working ( in Chromium, at least )
Thanks, I'll wait an "official" fix for the context menu, thanks again!
The context menu appears to be fixed now as well. I'll post here when I get a release out.
1.46.11 going up now to chromestore & AMO
Reopen if things are buggy. Looks good so far on FF and chromium
Thank you for your work. The popup opens in both Chrome and Firefox, but after clicking on "ok" the popup does not disappear and often the page freezes and I have to restart the browser... I tried setting different multilinesAsSeparateSearchesLimit
Thanks for pointing that out. I'm seeing this too. No idea how that glitch popped up.
Should be fixed in 1.46.12, live now
Thanks Mike, I hope in a soon fix as I'm experiencing some problems with current version (1.46.11): sometimes CS in context menu doesn't react and the fan begins to rotate, forcing me to restart... :(
Did you get the update to 1.46.12?
Says "Pending Review". I'm going to republish. Sometimes the chromestore hangs on submissions.
Okay, thank you
Ehi Mike, I finally used your last version, seems working great so far, thank you very much! I tried copying the strings of the opening post in Google search
field, and 4 browser tabs opened, that is what I desired, I don't know how your extension recognized they were separated string although they were joined together!! A question, is it possible let your extension work from Google Sheets (simple or multiline search)?
is it possible let your extension work from Google Sheets (simple or multiline search)?
Not currently. I'll need to look at what's possible with the api
Ah okay, thanks again for your great work!
No prob
Hi Mike, could you help me, please? I'm using this search engine (combobox "Parola chiave"). Is it possible to do a multisearch using a single template URL and using different strings opening multiple tabs? I tried to enable
multilinesAsSeparateSearches
(value: true), but I don't get any result from the context menu.P.S. Here are some strings that I used, for example:
La moltiplicazione dei pani Alkuin Heising 1970
Architectura in nuce Bruno Zevi 1979
Il ritratto di Dorian Gray Oscar Wilde 1994
La *crisi della psicoanalisi / Erich Fromm 1980
This would be the tamplate URL:
https://opac.sbn.it/risultati-ricerca-avanzata/-/opac-adv/all?struct%3A3008=ricerca.frase%3A4%3D1&fieldstruct%5B1%5D=ricerca.parole_tutte%3A4%3D6&fieldvalue%5B0%5D=%s&fieldaccess%5B0%5D=Keywords%3A1035&fieldop2%5B0%5D=AND%3A%40and%40&fieldstruct%5B10%5D=ricerca.frase%3A4%3D1&fieldop%5B3%5D=AND%3A%40and%40&fieldop%5B1%5D=AND%3A%40and%40&fieldstruct%5B2%5D=ricerca.parole_tutte%3A4%3D6
Thanks very much!