about summary refs log tree commit diff stats
path: root/settings.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-06-01 16:55:52 -0400
committerJosh Rickmar <jrick@devio.us>2012-06-01 16:55:52 -0400
commit59e5b689070af33f9597ee85f9d046e850aa26e8 (patch)
tree02619dc24d7338b23d8406977a1d7664c3652098 /settings.c
parent108f505da68aeaa8ff1674fe1596c3c3b872d85b (diff)
downloadxombrero-59e5b689070af33f9597ee85f9d046e850aa26e8.tar.gz
Parse keybound commands for if they begin with a ':'. If they do,
don't try to execute them, but instead open a prompt with that current
command.  Can be used to create custom prompts, and should fix FS#233.

This change also adds the ability to replace strings in keybound
prompts.  So far the only string replacement is <uri> which is
replaced by the current tab's uri.  This also kills the old prompt*
commands as they only existed so they could be bound to a key.
However with the addition of the <uri> substitution, these are no
longer necessary.  Document these changes in the manpage.
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/settings.c b/settings.c
index 633f3bd..6783aa1 100644
--- a/settings.c
+++ b/settings.c
@@ -1066,10 +1066,10 @@ struct key_binding	keys[] = {
 	{ "focusreset",		CTRL,	1,	GDK_0		},
 
 	/* command aliases (handy when -S flag is used) */
-	{ "promptopen",		0,	1,	GDK_F9		},
-	{ "promptopencurrent",	0,	1,	GDK_F10		},
-	{ "prompttabnew",	0,	1,	GDK_F11		},
-	{ "prompttabnewcurrent",0,	1,	GDK_F12		},
+	{ ":open ",		0,	1,	GDK_F9		},
+	{ ":open <uri>",	0,	1,	GDK_F10		},
+	{ ":tabnew ",		0,	1,	GDK_F11		},
+	{ ":tabnew <uri>",	0,	1,	GDK_F12		},
 };
 
 void