mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 09:37:58 +01:00
add initialization section to help
This commit is contained in:
@@ -302,6 +302,7 @@ vimperator.completion = (function() // {{{
|
|||||||
get_help_completions: function(filter) //{{{
|
get_help_completions: function(filter) //{{{
|
||||||
{
|
{
|
||||||
var help_array = [[["introduction"], "Introductory text"],
|
var help_array = [[["introduction"], "Introductory text"],
|
||||||
|
[["initialization"], "Initialization and startup"],
|
||||||
[["mappings"], "Normal mode commands"],
|
[["mappings"], "Normal mode commands"],
|
||||||
[["commands"], "Ex commands"],
|
[["commands"], "Ex commands"],
|
||||||
[["options"], "Configuration options"]]; // TODO: hardcoded until we have proper 'pages'
|
[["options"], "Configuration options"]]; // TODO: hardcoded until we have proper 'pages'
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ vimperator.help = function(section, easter) //{{{
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
var header = '<h1 alt="Vimperator"><img src="chrome://vimperator/content/logo_white.png"></h1>\n' +
|
var header = '<h1>Vimperator</h1>\n' +
|
||||||
'<p class="tagline">First there was a Navigator, then there was an Explorer.\n' +
|
'<p class="tagline">First there was a Navigator, then there was an Explorer.\n' +
|
||||||
'Later it was time for a Konqueror. Now it\'s time for an Imperator, the VIMperator :)</p>\n';
|
'Later it was time for a Konqueror. Now it\'s time for an Imperator, the VIMperator :)</p>\n';
|
||||||
|
|
||||||
@@ -166,23 +166,41 @@ vimperator.help = function(section, easter) //{{{
|
|||||||
|
|
||||||
'<p>Of course as a believer in free open source software, only make a donation if you really like Vimperator and the money doesn\'t hurt - otherwise just use it, recommend it and like it :)</p>\n'
|
'<p>Of course as a believer in free open source software, only make a donation if you really like Vimperator and the money doesn\'t hurt - otherwise just use it, recommend it and like it :)</p>\n'
|
||||||
|
|
||||||
|
var initialization = '<span style="float: right"><code class="tag">initialization</code></span><h2 id="initialization">Initialization</h2>\n' +
|
||||||
|
'<p>At startup Vimperator sources a user RC file, containing Ex commands, and any JavaScript files found in the plugin directory.</p>' +
|
||||||
|
'<p>The RC file may be named .vimperatorrc or _vimperatorrc. The search order is:</p>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>Unix and Mac - ~/.vimperatorrc then ~/_vimperatorrc</li>' +
|
||||||
|
'<li>Windows - ~/_vimperatorrc then ~/.vimperatorrc</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<p>The plugin directory is named:</p>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>Unix and Mac - ~/.vimperator/plugin</li>' +
|
||||||
|
'<li>Windows - ~/vimperator/plugin</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<p>The user\'s $HOME(~) directory is determined as follows:</p>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>Unix and Mac - $HOME is used.</li>' +
|
||||||
|
'<li>Windows - if $HOME is set then this is used, otherwise $USERPROFILE or finally $HOMEDRIVE$HOMEPATH.</li>' +
|
||||||
|
'</ul>\n';
|
||||||
|
|
||||||
var mappings = '<span style="float: right"><code class="tag">mappings</code></span><h2 id="mappings">Mappings</h2>\n' +
|
var mappings = '<span style="float: right"><code class="tag">mappings</code></span><h2 id="mappings">Mappings</h2>\n' +
|
||||||
'<p>The denotion of modifier keys is like in Vim, so C- means the Control key, M- the Meta key, A- the Alt key and S- the Shift key.</p>'+
|
'<p>The denotion of modifier keys is like in Vim, so C- means the Control key, M- the Meta key, A- the Alt key and S- the Shift key.</p>'+
|
||||||
'<table class="vimperator mappings">'
|
'<table class="vimperator mappings">'
|
||||||
mappings += makeHelpString(vimperator.mappings, "", "", null);
|
mappings += makeHelpString(vimperator.mappings, "", "", null);
|
||||||
mappings += '</table>';
|
mappings += '</table>';
|
||||||
if (section && section == 'holy-grail')
|
if (section && section == 'holy-grail')
|
||||||
mappings += '<span id="holy-grail">You found it, Arthur!</span>\n';
|
mappings += '<div><p id="holy-grail">You found it, Arthur!</p></div>\n';
|
||||||
|
|
||||||
var commands = '<span style="float: right"><code class="tag">commands</code></span><h2 id="commands">Commands</h2>\n' +
|
var commands = '<span style="float: right"><code class="tag">commands</code></span><h2 id="commands">Commands</h2>\n' +
|
||||||
'<table class="vimperator commands">\n';
|
'<table class="vimperator commands">\n';
|
||||||
commands += makeHelpString(vimperator.commands, ":", "", null);
|
commands += makeHelpString(vimperator.commands, ":", "", null);
|
||||||
commands += '</table>';
|
commands += '</table>';
|
||||||
if (section && section == '42')
|
if (section && section == '42')
|
||||||
commands += '<p id="42">What is the meaning of life, the universe and everything?<br/>' +
|
commands += '<div><p id="42">What is the meaning of life, the universe and everything?<br/>' +
|
||||||
'Douglas Adams, the only person who knew what this question really was about is<br/>' +
|
'Douglas Adams, the only person who knew what this question really was about is<br/>' +
|
||||||
'now dead, unfortunately. So now you might wonder what the meaning of death<br/>' +
|
'now dead, unfortunately. So now you might wonder what the meaning of death<br/>' +
|
||||||
'is...</p>\n';
|
'is...</p></div>\n';
|
||||||
|
|
||||||
var options = '<span style="float: right"><code class="tag">options</code></span><h2 id="options">Options</h2>\n' +
|
var options = '<span style="float: right"><code class="tag">options</code></span><h2 id="options">Options</h2>\n' +
|
||||||
'<table class="vimperator options">\n';
|
'<table class="vimperator options">\n';
|
||||||
@@ -198,6 +216,7 @@ vimperator.help = function(section, easter) //{{{
|
|||||||
'<span class="version">version ' + vimperator.version + '</span>\n' +
|
'<span class="version">version ' + vimperator.version + '</span>\n' +
|
||||||
header +
|
header +
|
||||||
introduction +
|
introduction +
|
||||||
|
initialization +
|
||||||
mappings +
|
mappings +
|
||||||
commands +
|
commands +
|
||||||
options +
|
options +
|
||||||
|
|||||||
Reference in New Issue
Block a user