diff options
author | Josh Rickmar <jrick@devio.us> | 2012-06-01 16:55:52 -0400 |
---|---|---|
committer | Josh Rickmar <jrick@devio.us> | 2012-06-01 16:55:52 -0400 |
commit | 59e5b689070af33f9597ee85f9d046e850aa26e8 (patch) | |
tree | 02619dc24d7338b23d8406977a1d7664c3652098 /xombrero.1 | |
parent | 108f505da68aeaa8ff1674fe1596c3c3b872d85b (diff) | |
download | xombrero-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 'xombrero.1')
-rw-r--r-- | xombrero.1 | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/xombrero.1 b/xombrero.1 index 69154ab..da50668 100644 --- a/xombrero.1 +++ b/xombrero.1 @@ -135,7 +135,7 @@ Each keyboard shortcut requires exactly one entry in the configuration file. A shortcut can have multiple entries in the configuration file. The format of the keybinding entry is as follows: .Pp -.D1 keybinding = action,(!)keystroke(s) +.D1 keybinding = (:)action,(!)keystroke(s) .Pp For example, "keybinding = tabnew,C-t" where .Cm tabnew @@ -143,6 +143,17 @@ is the action and .Cm C-t are the keystrokes. +.Pp +If the action begins with a colon, the action will be entered into the +command prompt instead of being executed. +For example, "keybinding = :session open ,M-s" will open the command +prompt with ":open session " entered when using the M-s keybinding. +.Pp +Keybindings which open the command prompt may also include the string +<uri>, which will be replaced by the current tab's URI. +For example, "keybinding = :open <uri>,F10" will open the command +prompt with <uri> replaced with the current URI. +.Pp GTK has some default keybindings for manipulating text inside input fields, such as the URI or search entry widget, for example .Cm C-w @@ -205,29 +216,30 @@ Focus on search entry .El .Ss Command Aliases These commands allow the user to map specific actions to specific keys. -It can be useful when the -.Fl S -option is used. .Pp .Bl -tag -width Ds -offset indent -compact .It Cm F1 -Alias for ":help" +Alias for "help" .It Cm F2 -Alias for ":proxy toggle" +Alias for "proxy toggle" .It Cm F4 -Alias for ":toplevel toggle" +Alias for "toplevel toggle" +.El +.Ss Prompt Aliases +These commands allow the user to open a prompt. +These can be useful when the +.Fl S +option is used. +.Pp +.Bl -tag -width Ds -offset indent -compact .It Cm F9 -Alias for ":open" -.Pq Cm promptopen +Alias for ":open " .It Cm F10 -Alias for ":open current-uri" -.Pq Cm promptopencurrent +Alias for ":open <uri>" .It Cm F11 -Alias for ":tabnew" -.Pq Cm prompttabnew +Alias for ":tabnew " .It Cm F12 -Alias for ":tabnew current-uri" -.Pq Cm prompttabnewcurrent +Alias for ":tabnew <uri>" .El .Ss Navigation Commands These commands allow the user to navigate web pages and, |