mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:27:58 +01:00
change :viusage/:exusage to jump to the appropriate help tag - special versions
now exhibit the old behaviour
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,6 +1,8 @@
|
|||||||
<pre>
|
<pre>
|
||||||
2008-XX-XX:
|
2008-XX-XX:
|
||||||
* version 2.0 (probably)
|
* version 2.0 (probably)
|
||||||
|
* IMPORTANT: :viusage and :exusage now jump to the help index, use the
|
||||||
|
special versions for the old behavior
|
||||||
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
|
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
|
||||||
VimperatorLeave respectively
|
VimperatorLeave respectively
|
||||||
* add :scriptnames
|
* add :scriptnames
|
||||||
|
|||||||
@@ -266,18 +266,26 @@ const liberator = (function () //{{{
|
|||||||
|
|
||||||
liberator.commands.add(["exu[sage]"],
|
liberator.commands.add(["exu[sage]"],
|
||||||
"List all Ex commands with a short description",
|
"List all Ex commands with a short description",
|
||||||
function ()
|
function (args, special)
|
||||||
{
|
{
|
||||||
var usage = "<table>";
|
if (!special)
|
||||||
for (let command in liberator.commands)
|
|
||||||
{
|
{
|
||||||
usage += "<tr><td style=\"padding-right: 20px\" class=\"hl-Title\"> :" +
|
liberator.help("ex-cmd-index");
|
||||||
liberator.util.escapeHTML(command.name) + "</td><td>" +
|
|
||||||
liberator.util.escapeHTML(command.description) + "</td></tr>";
|
|
||||||
}
|
}
|
||||||
usage += "</table>";
|
else
|
||||||
|
{
|
||||||
|
// TODO: clicking on these should open the help
|
||||||
|
var usage = "<table>";
|
||||||
|
for (let command in liberator.commands)
|
||||||
|
{
|
||||||
|
usage += "<tr><td style=\"padding-right: 20px\" class=\"hl-Title\"> :" +
|
||||||
|
liberator.util.escapeHTML(command.name) + "</td><td>" +
|
||||||
|
liberator.util.escapeHTML(command.description) + "</td></tr>";
|
||||||
|
}
|
||||||
|
usage += "</table>";
|
||||||
|
|
||||||
liberator.echo(usage, liberator.commandline.FORCE_MULTILINE);
|
liberator.echo(usage, liberator.commandline.FORCE_MULTILINE);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{ argCount: "0" });
|
{ argCount: "0" });
|
||||||
|
|
||||||
@@ -479,18 +487,26 @@ const liberator = (function () //{{{
|
|||||||
|
|
||||||
liberator.commands.add(["viu[sage]"],
|
liberator.commands.add(["viu[sage]"],
|
||||||
"List all mappings with a short description",
|
"List all mappings with a short description",
|
||||||
function (args, special, count, modifiers)
|
function (args, special)
|
||||||
{
|
{
|
||||||
var usage = "<table>";
|
if (!special)
|
||||||
for (let mapping in liberator.mappings)
|
|
||||||
{
|
{
|
||||||
usage += "<tr><td style=\"padding-right: 20px\" class=\"hl-Title\"> " +
|
liberator.help("normal-index");
|
||||||
liberator.util.escapeHTML(mapping.names[0]) + "</td><td>" +
|
|
||||||
liberator.util.escapeHTML(mapping.description) + "</td></tr>";
|
|
||||||
}
|
}
|
||||||
usage += "</table>";
|
else
|
||||||
|
{
|
||||||
|
// TODO: clicking on these should open the help
|
||||||
|
var usage = "<table>";
|
||||||
|
for (let mapping in liberator.mappings)
|
||||||
|
{
|
||||||
|
usage += "<tr><td style=\"padding-right: 20px\" class=\"hl-Title\"> " +
|
||||||
|
liberator.util.escapeHTML(mapping.names[0]) + "</td><td>" +
|
||||||
|
liberator.util.escapeHTML(mapping.description) + "</td></tr>";
|
||||||
|
}
|
||||||
|
usage += "</table>";
|
||||||
|
|
||||||
liberator.echo(usage, liberator.commandline.FORCE_MULTILINE);
|
liberator.echo(usage, liberator.commandline.FORCE_MULTILINE);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{ argCount: "0" });
|
{ argCount: "0" });
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,16 +58,18 @@ ____________________________________________________________________________
|
|||||||
|
|
||||||
|
|
||||||
|:exu| |:exusage| +
|
|:exu| |:exusage| +
|
||||||
||:exu[sage]||
|
||:exu[sage][!]||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Show help on Ex commands. Added to simulate the Nvi command.
|
Show help on Ex commands. Added to simulate the Nvi command. If [!] is given
|
||||||
|
then the help is listed in the command output window.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|:viu| |:viusage| +
|
|:viu| |:viusage| +
|
||||||
||:viu[sage]||
|
||:viu[sage][!]||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Show help on Normal mode commands. Added to simulate the Nvi command.
|
Show help on Normal mode commands. Added to simulate the Nvi command. If [!] is
|
||||||
|
given then the help is listed in the command output window.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user