diff --git a/TODO b/TODO index d9435342..10601f53 100644 --- a/TODO +++ b/TODO @@ -1,6 +1,6 @@
Priority list:
-1-9 as in vim (9=required for next release, 5=would be nice, 1=probably not)
+1-9 as in Vim (9=required for next release, 5=would be nice, 1=probably not)
BUGS:
- add window resize support to hints
@@ -28,7 +28,7 @@ BUGS:
no other matches are found
FEATURES:
-9 addaptive timeout for auto-completions, :set completions can be updated more often than
+9 adaptive timeout for auto-completions, :set completions can be updated more often than
:open foo
9 :highlight clear and :colorscheme default
9 use the storage module for autocommands
@@ -40,10 +40,10 @@ FEATURES:
(https://bugzilla.mozilla.org/show_bug.cgi?id=395739 could help)
7 use ctrl-n/p in insert mode for word completion
7 implement QuickFix window based on ItemList
-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
+7 [ctrl-o/i] to Go back to a Previous Position (done partly, however currently does not use a per tab jumplist)
+7 wherever possible: get rid of dialogs and ask console-like dialog questions
or write error prompts directly on the webpage or with :echo()
-7 [d could go to the last domain in the history stack. so if i browse from
+7 [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
opera's fast forward does something like this
7 make an option to disable session saving by default when you close Firefox
diff --git a/content/liberator.js b/content/liberator.js
index a8fed8ea..3f999e91 100644
--- a/content/liberator.js
+++ b/content/liberator.js
@@ -287,19 +287,7 @@ const liberator = (function () //{{{
commands.add(["exu[sage]"],
"List all Ex commands with a short description",
- function (args, special)
- {
- if (!special)
- {
- liberator.help("ex-cmd-index");
- }
- else
- {
- // TODO: clicking on these should open the help
- var usage = template.usage(commands);
- liberator.echo(usage, commandline.FORCE_MULTILINE);
- }
- },
+ function (args, special) { showHelpIndex("ex-cmd-index", commands, special); },
{
argCount: "0",
bang: true
@@ -364,19 +352,7 @@ const liberator = (function () //{{{
commands.add(["optionu[sage]"],
"List all options with a short description",
- function (args, special)
- {
- if (!special)
- {
- liberator.help("option-index");
- }
- else
- {
- // TODO: clicking on these should open the help
- var usage = template.usage(options);
- liberator.echo(usage, commandline.FORCE_MULTILINE);
- }
- },
+ function (args, special) { showHelpIndex("option-index", options, special); },
{
argCount: "0",
bang: true
@@ -513,19 +489,7 @@ const liberator = (function () //{{{
commands.add(["viu[sage]"],
"List all mappings with a short description",
- function (args, special)
- {
- if (!special)
- {
- liberator.help("normal-index");
- }
- else
- {
- // TODO: clicking on these should open the help
- var usage = template.usage(mappings);
- liberator.echo(usage, commandline.FORCE_MULTILINE);
- }
- },
+ function (args, special) { showHelpIndex("normal-index", mappings, special); },
{
argCount: "0",
bang: true
@@ -549,6 +513,7 @@ const liberator = (function () //{{{
}
}
+ // return the platform normalised to Vim values
function getPlatformFeature()
{
let platform = navigator.platform;
@@ -556,6 +521,15 @@ const liberator = (function () //{{{
return /^Mac/.test(platform) ? "MacUnix" : platform == "Win32" ? "Win32" : "Unix";
}
+ // show a usage index either in the MOW or as a full help page
+ function showHelpIndex(tag, items, inMow)
+ {
+ if (inMow)
+ liberator.echo(template.usage(items), commandline.FORCE_MULTILINE);
+ else
+ liberator.help(tag);
+ }
+
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
diff --git a/locale/en-US/index.txt b/locale/en-US/index.txt
index ee151fa3..899af778 100644
--- a/locale/en-US/index.txt
+++ b/locale/en-US/index.txt
@@ -90,6 +90,7 @@ section:Normal{nbsp}mode[normal-index]
||[[|| Follow the link labeled \'prev', \'previous' or \'<' if it exists +
||g$|| Go to the last tab +
+||g.|| Redisplay the last command output +
||g0|| Go to the first tab +
||g|| Print file information +
||gB|| Repeat last :buffer[!] command in reverse direction +
@@ -163,6 +164,7 @@ section:Ex{nbsp}commands[ex-cmd-index,:index]
||:delmacros|| Delete macros +
||:delmarks|| Delete the specified marks +
||:delqmarks|| Delete the specified QuickMarks +
+||:delstyle|| Delete any matching styles +
||:dialog|| Open a undefined dialog +
||:doautoall|| Apply the autocommands matching the specified URL to all buffers +
||:doautocmd|| Apply the autocommands matching the specified URL to the current buffer +
@@ -195,11 +197,13 @@ section:Ex{nbsp}commands[ex-cmd-index,:index]
||:mapclear|| Remove all mappings +
||:mark|| Mark current location within the web page +
||:marks|| Show all location marks of current web page +
+||:messages|| Display previously given messages +
||:mkvimperatorrc|| Write current key mappings and changed options to the config file +
||:nohlsearch|| Remove the search highlighting +
||:noremap|| Map a key sequence without remapping keys +
||:normal|| Execute Normal mode commands +
||:open|| Open one or more URLs in the current tab +
+||:optionusage|| List all options with a short description +
||:pageinfo|| Show various page information +
||:pagestyle|| Select the author style sheet to apply +
||:play|| Replay a recorded macro +
diff --git a/locale/en-US/message.txt b/locale/en-US/message.txt
index 8b86a438..2f0125e5 100644
--- a/locale/en-US/message.txt
+++ b/locale/en-US/message.txt
@@ -12,8 +12,8 @@ Display previously given messages.
________________________________________________________________________________
-|gm| +
-||gm||
+|g.| +
+||g.||
________________________________________________________________________________
Redisplay the last command output. Only the most recent command's output is
available.