commit 8340aea4434a5241a0d621ae6ba26f7e3971b595
parent 1fac65a2f80c71c231064f7a09d7c56b7d7727ec
Author: Cem Keylan <cem@ckyln.com>
Date: Fri, 22 Nov 2019 23:30:39 +0300
open in new tab instead of new window
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -154,8 +154,8 @@ static char *linkselect_curwin [] = { "/bin/sh", "-c",
"surf_linkselect.sh $0 'Link' | xargs -r xprop -id $0 -f _SURF_GO 8s -set _SURF_GO",
winid, NULL
};
-static char *linkselect_newwin [] = { "/bin/sh", "-c",
- "surf_linkselect.sh $0 'Link (new window)' | xargs -r surf",
+static char *linkselect_newtab [] = { "/bin/sh", "-c",
+ "surf_linkselect.sh $0 'Link (new window)' | xargs -r surf-open.sh",
winid, NULL
};
static char *yanklink [] = { "/bin/sh", "-c",
@@ -175,7 +175,7 @@ static Key keys[] = {
/* modifier keyval function arg */
{ 0, GDK_KEY_o, spawn, SETPROP("_SURF_URI", "_SURF_GO", PROMPT_GO) },
{ 0, GDK_KEY_f, externalpipe, { .v = linkselect_curwin } },
- { 0|GDK_SHIFT_MASK, GDK_KEY_f, externalpipe, { .v = linkselect_newwin } },
+ { 0|GDK_SHIFT_MASK, GDK_KEY_f, externalpipe, { .v = linkselect_newtab } },
{ 0, GDK_KEY_slash, spawn, SETPROP("_SURF_FIND", "_SURF_FIND", PROMPT_FIND) },
{ 0, GDK_KEY_i, insert, { .i = 1 } },