Use search prefix to avoid conflicts with current URL

This commit is contained in:
Yash Karandikar 2022-11-04 10:11:16 -05:00
parent e485b2ea78
commit ff0c1ac744
2 changed files with 8 additions and 8 deletions

View File

@ -10,9 +10,9 @@ static char *dldir = "~/dl/";
static char *dlstatus = "~/.surf/dlstatus/";
static SearchEngine searchengines[] = {
{ "d ", "https://duckduckgo.com/?q=%s" },
{ "g ", "https://google.com/search?q=%s" },
{ "aw ", "https://wiki.archlinux.org/index.php?search=%s" },
{ "!d ", "https://duckduckgo.com/?q=%s" },
{ "!g ", "https://google.com/search?q=%s" },
{ "!aw ", "https://wiki.archlinux.org/index.php?search=%s" },
};
/* Webkit default features */
@ -53,7 +53,7 @@ static Parameter defconfig[ParameterLast] = {
[SpellLanguages] = { { .v = ((char *[]){ "en_US", NULL }) }, },
[StrictTLS] = { { .i = 1 }, },
[Style] = { { .i = 1 }, },
[WebGL] = { { .i = 0 }, },
[WebGL] = { { .i = 1 }, },
[ZoomLevel] = { { .f = 1.0 }, },
};

View File

@ -10,9 +10,9 @@ static char *dldir = "~/dl/";
static char *dlstatus = "~/.surf/dlstatus/";
static SearchEngine searchengines[] = {
{ "d ", "https://duckduckgo.com/?q=%s" },
{ "g ", "https://google.com/search?q=%s" },
{ "aw ", "https://wiki.archlinux.org/index.php?search=%s" },
{ "!d ", "https://duckduckgo.com/?q=%s" },
{ "!g ", "https://google.com/search?q=%s" },
{ "!aw ", "https://wiki.archlinux.org/index.php?search=%s" },
};
/* Webkit default features */
@ -53,7 +53,7 @@ static Parameter defconfig[ParameterLast] = {
[SpellLanguages] = { { .v = ((char *[]){ "en_US", NULL }) }, },
[StrictTLS] = { { .i = 1 }, },
[Style] = { { .i = 1 }, },
[WebGL] = { { .i = 0 }, },
[WebGL] = { { .i = 1 }, },
[ZoomLevel] = { { .f = 1.0 }, },
};