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

View file

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