ref: 7923e9afe0182b0a723e80f93b0eec30020549ca
dir: /patches/abaco-ddg.diff/
diff -r cad89138e0ac sys/src/cmd/abaco/exec.c --- a/sys/src/cmd/abaco/exec.c Wed Dec 23 13:10:30 2020 +0100 +++ b/sys/src/cmd/abaco/exec.c Thu Dec 31 15:31:13 2020 -0800 @@ -18,7 +18,7 @@ void exit(Text *, Text *, int, int, Rune *, int); void get(Text *, Text *, int, int, Rune *, int); void go(Text *,Text *, int, int, Rune *, int); -void google(Text *,Text *, int, int, Rune *, int); +void ddg(Text *,Text *, int, int, Rune *, int); void new(Text*, Text *, int, int, Rune *, int); void newcol(Text*, Text *, int, int, Rune *, int); void paste(Text *, Text *, int, int, Rune *, int); @@ -43,7 +43,7 @@ { L"Delcol", delcol, FALSE, TRUE }, { L"Exit", exit, XXX, XXX }, { L"Get", get, XXX, XXX }, - { L"Google", google, XXX, XXX }, + { L"Ddg", ddg, XXX, XXX }, { L"New", new, XXX, XXX }, { L"Newcol", newcol, XXX, XXX }, { L"Next", go, TRUE, XXX }, @@ -517,13 +517,13 @@ } void -google(Text *, Text *, int, int, Rune *arg, int narg) +ddg(Text *, Text *, int, int, Rune *arg, int narg) { Runestr rs; Rune *s; s = ucvt(arg); - rs.r = runesmprint("http://www.google.com/search?hl=en&ie=UTF-8&q=%.*S", narg, s); + rs.r = runesmprint("http://duckduckgo.com/lite?q=%.*S", narg, s); rs.nr = runestrlen(rs.r); openpage(nil, &rs); free(s); diff -r cad89138e0ac sys/src/cmd/abaco/rows.c --- a/sys/src/cmd/abaco/rows.c Wed Dec 23 13:10:30 2020 +0100 +++ b/sys/src/cmd/abaco/rows.c Thu Dec 31 15:31:13 2020 -0800 @@ -33,7 +33,7 @@ r1.min.y = r1.max.y; r1.max.y += Border; draw(screen, r1, display->black, nil, ZP); - textinsert(t, 0, L"Newcol Google Exit ", 19); + textinsert(t, 0, L"Newcol Ddg Exit ", 19); textsetselect(t, t->rs.nr, t->rs.nr); }