From 6567eb3f4bb040eec0e2d142b63470c10577b291 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Mon, 18 May 2009 20:47:07 +0200 Subject: [PATCH] duclares keycmdn thingie --- README | 3 +++ uzbl.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README b/README index b46c236..bf4b35c 100644 --- a/README +++ b/README @@ -129,6 +129,9 @@ This tells uzbl to execute an action immediately. The simplest example of this KEYCMD This sets the interactive command buffer to ``. Keycmd is primarily useful for scripts that help you type a command while still letting you edit it before execution. For example, if you have a binding like "o _" that opens an URL, then you could create a binding `O` that spawns a script which will set the command buffer to "o current-uri-here", letting you enter relative URLs easily. + + KEYCMDN +Like KEYCMD, but also emulates a press of return which causes binds with an asterisk or underscore to execute. (See sample config) ### ACTIONS diff --git a/uzbl.c b/uzbl.c index f24aeb7..a81bbc9 100644 --- a/uzbl.c +++ b/uzbl.c @@ -1259,6 +1259,8 @@ parse_cmd_line(const char *ctl_line) { sent in a loop or the whole string in one go like now? */ g_string_assign(uzbl.state.keycmd, tokens[1]); run_keycmd(FALSE); + if (g_strstr_len(ctl_line, 7, "n") || g_strstr_len(ctl_line, 7, "N")) + run_keycmd(TRUE); update_title(); g_strfreev(tokens); } -- 1.7.9.5