Allow space characters in nickname of search engines
-
@pafflick my idea is this, " c" would be the nickname, thus, I could search for something that begins with one letter without worrying about it going to another search engine.
i.e. c reactive protein is searched by the default search engine; " c query" gets searched by another. Surely this makes sense now.Not sure why spaces are illegal characters for said attribute anyway.
-
@xium Yes, now it makes more sense. You should probably add that example to your first post. Using space characters in nicknames could lead to other issues, though. Someone could for example add one at the end (eg.
dd
) and then wonder why it doesn't work. I guess that a better solution would be to add some alternative way of triggering search with other search engines (not necessarily by preceding them all by a space bar). -
Is there some way I can force allow this, like edit a setting file or something?
-
As a workaround you can use any other key as a prefix to search engine nickname instead of space, like
,c .c `c
or whatever works for you. Maybe not convenient as space, but works. -
@pafflick Which file can I edit to force this?
-
@xium If it is really important to you, you could experiment with modifying
bundle.js
which is underYOUR_VIVALDI_DIRECTORY/Application/VERSION_NUMBER/resources/vivaldi
. Not really recommended if you aren't familiar with JS, and you will need to make these changes after every update.You should keep a backup of the unedited file in case you break something.
The file is also minified and uglified, so you will probably need an auto formatter to make it more readable. I would only use the prettified version to investigate code and bring final changes back into a minified version.
I took a quick look and it seems you should investigate occurrences of
.split(" ")[0]
,.trim()
, and.getByKeyword(
.
If none of that makes sense to you, then you probably shouldn't mess with it...
I might take a look later if I have time.
-
@nomadic aiight, cheers brudda
-
Wait, what, so the search queries I have created are surely stored somewhere; what file are they in?
-
BAMP!
-
Ppafflick moved this topic from Vivaldi for Renault on