mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 04:07:58 +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:
@@ -1099,10 +1099,10 @@ vimperator.Commands = function () //{{{
|
|||||||
help: "Open a GUI dialog where you can select the printer, number of copies, orientation, etc."
|
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); },
|
function (args, special, count, modifiers) { vimperator.help(args, special, null, modifiers); },
|
||||||
{
|
{
|
||||||
usage: ["h[elp] {subject}"],
|
usage: ["H[elp] {subject}"],
|
||||||
shortHelp: "Open the help window",
|
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/>" +
|
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/>" +
|
"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); }
|
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")); },
|
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); }
|
completer: function (filter) { return vimperator.completion.Help(filter); }
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|||||||
@@ -304,6 +304,8 @@ vimperator.Help = function(section)
|
|||||||
var elem = vimperator.buffer.getElement('@class="tag" and text()="' + tag + '"');
|
var elem = vimperator.buffer.getElement('@class="tag" and text()="' + tag + '"');
|
||||||
if (elem)
|
if (elem)
|
||||||
window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
|
window.content.scrollTo(0, elem.getBoundingClientRect().top - 10); // 10px context
|
||||||
|
else
|
||||||
|
dump('no element: ' + '@class="tag" and text()="' + tag + '"\n' );
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1129,12 +1129,15 @@ vimperator.StatusLine = function () //{{{
|
|||||||
if (url == "about:blank")
|
if (url == "about:blank")
|
||||||
{
|
{
|
||||||
var title = vimperator.buffer.title;
|
var title = vimperator.buffer.title;
|
||||||
|
if (!title)
|
||||||
if (title == "Vimperator Help")
|
|
||||||
url = "[Help]";
|
|
||||||
else if (!title)
|
|
||||||
url = "[No Name]";
|
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 sh = getWebNavigation().sessionHistory;
|
||||||
var modified = "";
|
var modified = "";
|
||||||
|
|||||||
@@ -39,9 +39,9 @@ HEADER=<span style="float: right; padding-top: 10px;"><form action="https://www.
|
|||||||
[section-inlinemacro]
|
[section-inlinemacro]
|
||||||
<table style="border-bottom: 1px solid silver; width: 100%">
|
<table style="border-bottom: 1px solid silver; width: 100%">
|
||||||
<tr width="100%"><td width="50%"><h2>{target}</h2></td><td width="50%">
|
<tr width="100%"><td width="50%"><h2>{target}</h2></td><td width="50%">
|
||||||
{3? <a id="{3}"/><span class="tag section">{3}</span>}
|
{3? <a id="{3}"/><span class="tag">{3}</span>}
|
||||||
{2? <a id="{2}"/><span class="tag section">{2}</span>}
|
{2? <a id="{2}"/><span class="tag">{2}</span>}
|
||||||
{1? <a id="{1}"/><span class="tag section">{1}</span>}
|
{1? <a id="{1}"/><span class="tag">{1}</span>}
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ ________________________________________________________________________________
|
|||||||
section:Opening{nbsp}web{nbsp}pages[opening]
|
section:Opening{nbsp}web{nbsp}pages[opening]
|
||||||
|
|
||||||
|o| |:o| |:open|
|
|o| |:o| |:open|
|
||||||
||:o[pen] [arg1], [arg2], ...|| +
|
||:o[pen][!] [arg1], [arg2], ...|| +
|
||||||
||o||
|
||o||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Open one or more URLs in the current tab.
|
Open one or more URLs in the current tab.
|
||||||
@@ -63,7 +63,7 @@ ________________________________________________________________________________
|
|||||||
|
|
||||||
|
|
||||||
|t| |:t| |:tabopen|
|
|t| |:t| |:tabopen|
|
||||||
||:tabopen [arg1], [arg2], ...|| +
|
||:tabopen[!] [arg1], [arg2], ...|| +
|
||||||
||t||
|
||t||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Just like help::open[browsing.html,:open], but opens the resulting web page(s)
|
Just like help::open[browsing.html,:open], but opens the resulting web page(s)
|
||||||
@@ -73,7 +73,7 @@ ________________________________________________________________________________
|
|||||||
|
|
||||||
|
|
||||||
|w| |:w| |:winopen|
|
|w| |:w| |:winopen|
|
||||||
||:winopen [arg1], [arg2], ...|| +
|
||:winopen[!] [arg1], [arg2], ...|| +
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
Just like help::open[browsing.html,:open], but opens the resulting web page(s)
|
Just like help::open[browsing.html,:open], but opens the resulting web page(s)
|
||||||
in a new window.
|
in a new window.
|
||||||
|
|||||||
@@ -7,6 +7,11 @@ span.strong {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #4A708B;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
body blockquote {
|
body blockquote {
|
||||||
margin-top: .75em;
|
margin-top: .75em;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
@@ -288,9 +293,9 @@ span.tag, span.hiddentag {
|
|||||||
padding-top: -5px;
|
padding-top: -5px;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
span.section {
|
/* inside a table cell means this tag is part of a section */
|
||||||
/*margin-top: 20px !important; /* NOTE: needs change when you change <h2>'s margin */
|
td span.tag {
|
||||||
margin-bottom: 0px;
|
padding-top: 25px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.key {
|
div.key {
|
||||||
|
|||||||
Reference in New Issue
Block a user