1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 03:07:58 +01:00

Totally unfinished, but first attempts with a temporary :Help command to use static html pages for the help

This commit is contained in:
Martin Stubenschrott
2008-01-03 14:40:03 +00:00
parent 488e55390c
commit 2aa72922a4
8 changed files with 1134 additions and 3 deletions

1047
ChangeLog

File diff suppressed because it is too large Load Diff

1
TODO
View File

@@ -23,6 +23,7 @@ FEATURES:
7 [ctrl-o/i] to Go back to a Previous Position (done partly, however currenty does not use a per tab jumplist) 7 [ctrl-o/i] to Go back to a Previous Position (done partly, however currenty does not use a per tab jumplist)
7 whereever possible: get rid of dialogs and ask console-like dialog questions or write error prompts directly on the webpage or with :echo() 7 whereever possible: get rid of dialogs and ask console-like dialog questions or write error prompts directly on the webpage or with :echo()
7 :set! should also set about:config options (with autocomplete) 7 :set! should also set about:config options (with autocomplete)
7 make a command to search within google search results (http://gadelkareem.com/2007/01/28/using-google-ajax-api-as-an-array/)
6 jump to the next heading with ]h, next image ]i, previous textbox [t and so on 6 jump to the next heading with ]h, next image ]i, previous textbox [t and so on
6 [d could go to the last domain in the history stack. so if i browse from 6 [d could go to the last domain in the history stack. so if i browse from
google to another page and click 10 links there, [d would take me back to the google page google to another page and click 10 links there, [d would take me back to the google page

View File

@@ -1,3 +1,4 @@
content vimperator content/ content vimperator content/
locale vimperator en-US locale/en-US/
skin vimperator classic/1.0 skin/ skin vimperator classic/1.0 skin/
overlay chrome://browser/content/browser.xul chrome://vimperator/content/vimperator.xul overlay chrome://browser/content/browser.xul chrome://vimperator/content/vimperator.xul

View File

@@ -1032,6 +1032,13 @@ 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]"],
function (args, special, count, modifiers) { vimperator.open("chrome://vimperator/locale/" + (args || "introduction") + ".html"); },
{
shortHelp: "Temporary function, will replace :help at some time",
completer: function (filter) { return [["introduction", ""], ["options", ""]]; }
}
));
commandManager.add(new vimperator.Command(["hist[ory]", "hs"], commandManager.add(new vimperator.Command(["hist[ory]", "hs"],
function (args, special) { vimperator.history.list(args, special); }, function (args, special) { vimperator.history.list(args, special); },
{ {
@@ -2017,7 +2024,8 @@ vimperator.Commands = function () //{{{
{ {
usage: ["se[t][!]", "se[t] {option}?", "se[t] [no]{option}", "se[t] {option}[+-]={value}", "se[t] {option}! | inv{option}", "se[t] {option}&"], usage: ["se[t][!]", "se[t] {option}?", "se[t] [no]{option}", "se[t] {option}[+-]={value}", "se[t] {option}! | inv{option}", "se[t] {option}&"],
shortHelp: "Set an option", shortHelp: "Set an option",
help: "Permanently change an option.<br/>" + help: "Temporarily change an option for the current session only. If you want " +
"to change an option permanently, put it in your ~/.vimperatorrc configuration file.<br/>" +
"<code class=\"command\">:set</code> without an argument shows all Vimperator options which differ from their default values.<br/>" + "<code class=\"command\">:set</code> without an argument shows all Vimperator options which differ from their default values.<br/>" +
"<code class=\"command\">:set!</code> without an argument shows all about:config preferences which differ from their default values.<br/>" + "<code class=\"command\">:set!</code> without an argument shows all about:config preferences which differ from their default values.<br/>" +
"There are three types of options: boolean, number and string. " + "There are three types of options: boolean, number and string. " +

View File

@@ -0,0 +1,24 @@
<head>
<title>Vimperator Help: Introduction</title>
<link rel="stylesheet" href="../content/help.css" type="text/css">
</head>
<body>
<div class="main">
</p><span style="float: right;"><code
class="tag">initialization</code></span><h2
id="initialization">Initialization</h2><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 <var>$HOME</var>(~) directory is
determined as follows:</p><ul><li>Unix and Mac - <var>$HOME</var> is
used.</li><li>Windows - if <var>$HOME</var> is set then this is used,
otherwise <var>$USERPROFILE</var> or finally
<var>$HOMEDRIVE</var><var>$HOMEPATH</var>.</li></ul><var>$VIMPERATOR_HOME</var>
can be used to override the calculated <var>$HOME</var> directory.
</div>
</body>

View File

@@ -0,0 +1,45 @@
<head>
<title>Vimperator Help: Introduction</title>
<link rel="stylesheet" href="../content/help.css" type="text/css">
</head>
<body>
<div class="main">
<h1><img src="../content/logo_white.png" alt="Vimperator"></h1>
<p class="tagline">First there was a Navigator, then there was an Explorer.
Later it was time for a Konqueror. Now it's time for an Imperator, the VIMperator :)</p>
<span style="float: right;"><code class="tag">introduction</code></span><h2 id="introduction">Introduction</h2>
<p><a href="http://vimperator.mozdev.org/">Vimperator</a> is a free browser add-on for Firefox,
which makes it look and behave like the <a href="http://www.vim.org/">Vim</a>
text editor. It has similar key bindings, and you could call it a modal
web browser, as key bindings differ according to which mode you are in.</p>
<p><span class="warning">Warning:</span>
To provide the most authentic Vim experience, the Firefox menubar and toolbar were hidden.<br/>
If you really need them, type: <code class="command">:set guioptions+=mT</code> to get them back.<br/>
If you don't like Vimperator at all, you can uninstall it by typing <code class="command">:addons</code> and remove/disable it.<br/>
If you like it, but can't remember the shortcuts, press <code class="mapping">F1</code> or <code class="command">:help</code> to get this help window back.
</p>
<p>Vimperator was written by <a href="mailto:stubenschrott@gmx.net">Martin Stubenschrott</a>.
If you appreciate my work on Vimperator and want to encourage me working on it
more, you can either send me greetings, patches or make a donation: </p>
<!-- the PAYPAL code -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><fieldset class="paypal">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!"/>
<img alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/>
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHPwYJKoZIhvcNAQcEo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MBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA3MDMyMTIyMzI1OFowIwYJKoZIhvcNAQkEMRYEFCirrvlwYVHQiNEEbM6ikfx9+Dm5MA0GCSqGSIb3DQEBAQUABIGAtbsR8GdCdURLziozXLSdtY+zJZUPPeQFXXy2V1S/3ldiN+pRvd4HI7xz8mOY1UaKJZpwZnOosy9MflL1/hbiEtEyQ2Dm/s4jnTcJng/NjLIZu+0NYxXRJhB+zMJubnMMMjzNrGlqI4F2HAB/bCA1eOJ5B83Of3dA4rk/T/8GoSQ=-----END PKCS7-----"/>
</fieldset></form>
<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>
<span style="float: right;"><code class="tag">overview</code></span><h2 id="overview">Overview</h2>
<ul>
<li><b><a href="initialization.html">Initialization:</a></b> How vimperator starts up, where it reads the config file...</li>
<li><b><a href="options.html">Options:</a></b> Foo</li>
</ul>
</div>
</body>

View File

@@ -0,0 +1,5 @@
<h1>Options</h1>
Options are beaaaaautiful, but read the
<a href="introduction.html">introduction</a>
first.

View File

@@ -27,8 +27,8 @@ syn keyword vimperatorCommand ab[breviate] ab[clear] addo[ns] b[uffer] ba[ck] bd
\ pref[erences] prefs q[uit] qa[ll] qma[rk] qmarks quita[ll] re[draw] re[load] reloada[ll] res[tart] run sav[eas] sb[ar] \ pref[erences] prefs q[uit] qa[ll] qma[rk] qmarks quita[ll] re[draw] re[load] reloada[ll] res[tart] run sav[eas] sb[ar]
\ sb[open] sbcl[ose] se[t] sideb[ar] so[urce] st[op] tN[ext] t[open] tab tabN[ext] tabc[lose] tabe[dit] tabfir[st] \ sb[open] sbcl[ose] se[t] sideb[ar] so[urce] st[op] tN[ext] t[open] tab tabN[ext] tabc[lose] tabe[dit] tabfir[st]
\ tabl[ast] tabm[ove] tabn[ext] tabnew tabo[nly] tabopen tabp[revious] tabr[ewind] tabs time tn[ext] tp[revious] u[ndo] \ tabl[ast] tabm[ove] tabn[ext] tabnew tabo[nly] tabopen tabp[revious] tabr[ewind] tabs time tn[ext] tp[revious] u[ndo]
\ una[bbreviate] undoa[ll] unl[et] unm[ap] ve[rsion] viu[sage] w[rite] wc[lose] win[open] winc[lose] wine[dit] wo[pen] wq \ una[bbreviate] undoa[ll] unl[et] unm[ap] ve[rsion] vie[wsource] viu[sage] w[rite] wc[lose] win[open] winc[lose] wine[dit]
\ wqa[ll] xa[ll] zo[om] \ wo[pen] wq \ wqa[ll] xa[ll] zo[om]
\ contained \ contained
syn match vimperatorCommand "!" contained syn match vimperatorCommand "!" contained