:open
url's rather than engines aliases when calling quterofi/open
with --invert
#6
Labels
wontfix
This will not be worked on
Consider the following example when calling
quterofi/open
with--invert
Here quterofi will call
:open ddg hello world
when the user accepts this entry, since the last word is not a valid search engine declared in engines.toml and thus, quterofi performs no inversion. This is on purpose, for qb to fallback to the normal behavior (in which the first word can match an engine) in case the user forgets to set the engine at the end instead of the beginning.But it's also possible and easy to construct and send the complete url when the user accepts this entry. For the above example the underlying command would be:
This prevents the first word to be (potentially) interpreted as a search engine alias, making the behavior of quterofi compatible with the strict definition of
--invert
With this aproach it could be possible to make qb engine agnostic (i.e: unaware of any search engine), if the user relies exclusively on quterofi to search stuff. Not sure why this could be considered an advantage, since parsing engines does not adds any noticeable lag at startup, at least on a decent modern computer.
Question: Do I care about it? Not much. Do I like it? No, actually I like
:open ddg hello world
more.The text was updated successfully, but these errors were encountered: