mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 01:05:47 +01:00
Make 'showstatuslinks' a string option.
This commit is contained in:
@@ -292,10 +292,10 @@ const Buffer = Module("buffer", {
|
|||||||
setOverLink: function setOverLink(link, b) {
|
setOverLink: function setOverLink(link, b) {
|
||||||
setOverLink.superapply(this, arguments);
|
setOverLink.superapply(this, arguments);
|
||||||
switch (options["showstatuslinks"]) {
|
switch (options["showstatuslinks"]) {
|
||||||
case 1:
|
case "status":
|
||||||
statusline.updateUrl(link ? "Link: " + link : null);
|
statusline.updateUrl(link ? "Link: " + link : null);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case "command":
|
||||||
if (link)
|
if (link)
|
||||||
dactyl.echo("Link: " + link, commandline.DISALLOW_MULTILINE);
|
dactyl.echo("Link: " + link, commandline.DISALLOW_MULTILINE);
|
||||||
else
|
else
|
||||||
@@ -1754,12 +1754,12 @@ const Buffer = Module("buffer", {
|
|||||||
|
|
||||||
options.add(["showstatuslinks", "ssli"],
|
options.add(["showstatuslinks", "ssli"],
|
||||||
"Show the destination of the link under the cursor in the status bar",
|
"Show the destination of the link under the cursor in the status bar",
|
||||||
"number", 1,
|
"string", "status",
|
||||||
{
|
{
|
||||||
completer: function (context) [
|
completer: function (context) [
|
||||||
["0", "Don't show link destination"],
|
["", "Don't show link destination"],
|
||||||
["1", "Show the link in the status line"],
|
["status", "Show the link in the status line"],
|
||||||
["2", "Show the link in the command line"]
|
["command", "Show the link in the command line"]
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1307,8 +1307,8 @@
|
|||||||
<tags>'ssli' 'showstatuslinks'</tags>
|
<tags>'ssli' 'showstatuslinks'</tags>
|
||||||
<spec>'showstatuslinks' 'ssli'</spec>
|
<spec>'showstatuslinks' 'ssli'</spec>
|
||||||
<strut/>
|
<strut/>
|
||||||
<type>number</type>
|
<type>string</type>
|
||||||
<default>1</default>
|
<default>status</default>
|
||||||
<description>
|
<description>
|
||||||
<p>
|
<p>
|
||||||
When the mouse hovers over a link, or a link is otherwise focused,
|
When the mouse hovers over a link, or a link is otherwise focused,
|
||||||
@@ -1318,9 +1318,9 @@
|
|||||||
<p>Possible values are:</p>
|
<p>Possible values are:</p>
|
||||||
|
|
||||||
<dl dt="width: 6em;">
|
<dl dt="width: 6em;">
|
||||||
<dt>0</dt> <dd>Don't show link destination</dd>
|
<dt></dt> <dd>Don't show link destination</dd>
|
||||||
<dt>1</dt> <dd>Show the link's destination in the &tag.status-line;</dd>
|
<dt>status</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>command</dt> <dd>Show the link's destination in the &tag.command-line;</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -50,7 +50,8 @@
|
|||||||
(see :h :contexts), allowing for powerful and fine-grained
|
(see :h :contexts), allowing for powerful and fine-grained
|
||||||
completion system customization.
|
completion system customization.
|
||||||
* IMPORTANT: 'laststatus' has been replaced with the ‘s’ flag in
|
* IMPORTANT: 'laststatus' has been replaced with the ‘s’ flag in
|
||||||
'guioptions'
|
'guioptions'.
|
||||||
|
* IMPORTANT: 'showstatuslinks' is not a string option.
|
||||||
* IMPORTANT: Command script files now use the *.penta file extension.
|
* IMPORTANT: Command script files now use the *.penta file extension.
|
||||||
* IMPORTANT: Plugins are now loaded from the 'plugins/'
|
* IMPORTANT: Plugins are now loaded from the 'plugins/'
|
||||||
directory in 'runtimepath' rather than 'plugin/'.
|
directory in 'runtimepath' rather than 'plugin/'.
|
||||||
|
|||||||
Reference in New Issue
Block a user