diff options
author | Kris Maglione <maglione.k@gmail.com> | 2010-11-14 22:50:42 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2010-11-14 22:50:42 -0500 |
commit | 89b41e0fd2d9092ea2a7f7c172271f23b8ac4275 (patch) | |
tree | c85b5eacc8576457ed2994356a97bb7c9cfcccca /common | |
parent | 1abe9fc2bbfc4eefcfea5224fcdb24503733d475 (diff) | |
download | pentadactyl-89b41e0fd2d9092ea2a7f7c172271f23b8ac4275.tar.gz |
Make 'showstatuslinks' a string option.
Diffstat (limited to 'common')
-rw-r--r-- | common/content/buffer.js | 12 | ||||
-rw-r--r-- | common/locale/en-US/options.xml | 10 |
2 files changed, 11 insertions, 11 deletions
diff --git a/common/content/buffer.js b/common/content/buffer.js index f8f11316..888e8521 100644 --- a/common/content/buffer.js +++ b/common/content/buffer.js @@ -292,10 +292,10 @@ const Buffer = Module("buffer", { setOverLink: function setOverLink(link, b) { setOverLink.superapply(this, arguments); switch (options["showstatuslinks"]) { - case 1: + case "status": statusline.updateUrl(link ? "Link: " + link : null); break; - case 2: + case "command": if (link) dactyl.echo("Link: " + link, commandline.DISALLOW_MULTILINE); else @@ -1754,12 +1754,12 @@ const Buffer = Module("buffer", { options.add(["showstatuslinks", "ssli"], "Show the destination of the link under the cursor in the status bar", - "number", 1, + "string", "status", { completer: function (context) [ - ["0", "Don't show link destination"], - ["1", "Show the link in the status line"], - ["2", "Show the link in the command line"] + ["", "Don't show link destination"], + ["status", "Show the link in the status line"], + ["command", "Show the link in the command line"] ] }); diff --git a/common/locale/en-US/options.xml b/common/locale/en-US/options.xml index 6fe5322c..a18c5840 100644 --- a/common/locale/en-US/options.xml +++ b/common/locale/en-US/options.xml @@ -1307,8 +1307,8 @@ <tags>'ssli' 'showstatuslinks'</tags> <spec>'showstatuslinks' 'ssli'</spec> <strut/> - <type>number</type> - <default>1</default> + <type>string</type> + <default>status</default> <description> <p> When the mouse hovers over a link, or a link is otherwise focused, @@ -1318,9 +1318,9 @@ <p>Possible values are:</p> <dl dt="width: 6em;"> - <dt>0</dt> <dd>Don't show link destination</dd> - <dt>1</dt> <dd>Show the link's destination in the &tag.status-line;</dd> - <dt>2</dt> <dd>Show the link's destination in the &tag.command-line;</dd> + <dt></dt> <dd>Don't show link destination</dd> + <dt>status</dt> <dd>Show the link's destination in the &tag.status-line;</dd> + <dt>command</dt> <dd>Show the link's destination in the &tag.command-line;</dd> </dl> </description> </item> |