aboutsummaryrefslogtreecommitdiff
path: root/help/urlm_add_browser
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2015-08-12 04:30:10 -0400
committerB. Watson <yalhcru@gmail.com>2015-08-12 04:30:10 -0400
commit4ef0f5708e20509e427c706acedff6a22bf0faaa (patch)
treed12262b419530f40a3ef7cd24998f047ed443ebf /help/urlm_add_browser
downloadirssi-urlmanager-4ef0f5708e20509e427c706acedff6a22bf0faaa.tar.gz
initial commit
Diffstat (limited to 'help/urlm_add_browser')
-rw-r--r--help/urlm_add_browser36
1 files changed, 36 insertions, 0 deletions
diff --git a/help/urlm_add_browser b/help/urlm_add_browser
new file mode 100644
index 0000000..d2c8327
--- /dev/null
+++ b/help/urlm_add_browser
@@ -0,0 +1,36 @@
+
+URLM_ADD_BROWSER <tag>:<name>:<cmd-format>
+
+Define a new browser. The arguments must be separated by : (colon)
+characters, since <name> and <cmd-format> may contain spaces (<cmd-format>
+generally *requires* spaces).
+
+<tag> is a short unique identifier for the browser. Examples are "ff" for
+Firefox or "moz" for Mozilla. The tag will be used to define a new irssi
+command /urlm_open_<tag>, and (if urlm_short_cmds is ON) a new /<tag>
+command. Tags must consist of only letters, numbers, or underscores,
+and the special tag "wget" is reserved.
+
+<name> is the full human-readable name of the browser. It may contain
+any characters you like, except for colons, and is only used for
+identification purposes (e.g. /urlm_list_browsers output).
+
+<cmd-format> is the sprintf() format used to generate the full command
+line required to run the browser. In simpler terms, it is the command
+that runs the browser, with %s in place of the URL. It may contain
+any characters other than colons.
+
+Examples:
+ /urlm_add_browser ff:Firefox:firefox -remote 'openurl(%s,new-tab)'
+ /urlm_add_browser ie:Internet Explorer:wine iexplore.exe '%s'
+
+The above examples define new /urlm_open_ff and /urlm_open_ie
+commands. If urlm_short_cmds is ON, they also define new /ff and /ie
+commands.
+
+Note: in <cmd-format>, the %s must occur inside a set of single-quotes.
+It need not be the only thing inside the quotes, however (see the firefox
+example). This is because a shell is used to spawn the external program.
+The URLM_ADD_BROWSER command checks for the quotes, and refuses to
+allow a <cmd-format> that's missing the quotes or the %s.
+