aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-18 20:47:07 +0200
committerGravatar Dieter Plaetinck <dieter@plaetinck.be>2009-05-18 20:47:07 +0200
commitf913de17dd48887511b058fc4716228ec9419fd0 (patch)
tree7c6085f22208777346f9699018f73312811f6cbc
parent2518760dbfec5c7f7281f6ab94eeaa6ae9c598a4 (diff)
parent0d10c269d24e3b227f118c6b23b88940e9ead4ad (diff)
duclares keycmdn thingie
-rw-r--r--README3
-rw-r--r--uzbl.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/README b/README
index e170e67..cff649e 100644
--- a/README
+++ b/README
@@ -129,6 +129,9 @@ This tells uzbl to execute an action immediately. The simplest example of this
KEYCMD <string>
This sets the interactive command buffer to `<string>`. 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 <string>
+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 43178e9..3cec514 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -1078,6 +1078,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);
}