1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 17:24:11 +01:00

swapped :help and :Help, if you don't find yet help in :help, try :Help, and convert it to asciidoc

This commit is contained in:
Martin Stubenschrott
2008-01-23 14:42:50 +00:00
parent 4153597a02
commit af927e89c5
6 changed files with 27 additions and 17 deletions

View File

@@ -1099,10 +1099,10 @@ vimperator.Commands = function () //{{{
help: "Open a GUI dialog where you can select the printer, number of copies, orientation, etc."
}
));
commandManager.add(new vimperator.Command(["h[elp]"],
commandManager.add(new vimperator.Command(["H[elp]"],
function (args, special, count, modifiers) { vimperator.help(args, special, null, modifiers); },
{
usage: ["h[elp] {subject}"],
usage: ["H[elp] {subject}"],
shortHelp: "Open the help window",
help: "You can jump to the specified <code class=\"argument\">{subject}</code> with <code class=\"command\">:help {subject}</code>.<br/>" +
"Make sure you use the full Vim notation when jumping to <code class=\"argument\">{subject}</code>. This means:<br/>" +
@@ -1115,10 +1115,10 @@ vimperator.Commands = function () //{{{
completer: function (filter) { return vimperator.completion.help(filter); }
}
));
commandManager.add(new vimperator.Command(["H[elp]"],
commandManager.add(new vimperator.Command(["h[elp]"],
function (args, special, count, modifiers) { vimperator.Help((args || "intro")); },
{
shortHelp: "Temporary function, will replace :help at some time",
shortHelp: "Not all help converted to new format, use :Help if you don't find your information.",
completer: function (filter) { return vimperator.completion.Help(filter); }
}
));

View File

@@ -304,6 +304,8 @@ vimperator.Help = function(section)
var elem = vimperator.buffer.getElement('@class="tag" and text()="' + tag + '"');
if (elem)
window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
else
dump('no element: ' + '@class="tag" and text()="' + tag + '"\n' );
}, 200);
}

View File

@@ -1129,12 +1129,15 @@ vimperator.StatusLine = function () //{{{
if (url == "about:blank")
{
var title = vimperator.buffer.title;
if (title == "Vimperator Help")
url = "[Help]";
else if (!title)
if (!title)
url = "[No Name]";
}
else
{
var matches = url.match(/^chrome:\/\/vimperator\/locale\/(\S+)$/)
if (matches && matches[1])
url = matches[1] + " [Help]";
}
var sh = getWebNavigation().sessionHistory;
var modified = "";