diff --git a/common/content/ui.js b/common/content/ui.js index b358aacd..a79f37e1 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -58,6 +58,11 @@ function CommandLine() //{{{ get length() this._messages.length, + clear: function clear() + { + this._messages = []; + }, + add: function add(message) { if (!message) @@ -975,6 +980,11 @@ function CommandLine() //{{{ }, { argCount: "0" }); + commands.add(["messc[lear]"], + "Clear the message history", + function () { messageHistory.clear(); }, + { argCount: "0" }); + commands.add(["sil[ent]"], "Run a command silently", function (args) diff --git a/vimperator/NEWS b/vimperator/NEWS index 851be046..63124c28 100644 --- a/vimperator/NEWS +++ b/vimperator/NEWS @@ -4,6 +4,7 @@ * add $MY_VIMPERATORRC * add ' and " local marks * add "w" and "W" Normal mode mappings for symmetry with o/O and t/T + * add :messclear 2008-XX-XX: * version 2.0 (probably) diff --git a/vimperator/locale/en-US/index.txt b/vimperator/locale/en-US/index.txt index 5a6a2fbb..9651529c 100644 --- a/vimperator/locale/en-US/index.txt +++ b/vimperator/locale/en-US/index.txt @@ -203,6 +203,7 @@ section:Ex{nbsp}commands[ex-cmd-index,:index] ||[c]:mark[c]|| Mark current location within the web page + ||[c]:marks[c]|| Show all location marks of current web page + ||[c]:messages[c]|| Display previously given messages + +||[c]:messclear[c]|| Clear the message history + ||[c]:mkvimperatorrc[c]|| Write current key mappings and changed options to the config file + ||[c]:nohlsearch[c]|| Remove the search highlighting + ||[c]:noremap[c]|| Map a key sequence without remapping keys + diff --git a/vimperator/locale/en-US/message.txt b/vimperator/locale/en-US/message.txt index 99c1d723..f7c18f9b 100644 --- a/vimperator/locale/en-US/message.txt +++ b/vimperator/locale/en-US/message.txt @@ -12,6 +12,13 @@ Display previously given messages. ________________________________________________________________________________ +|:messc| |:messclear| + +||:messc[lear]|| +________________________________________________________________________________ +Clear the message history. +________________________________________________________________________________ + + |g<| + ||g<|| ________________________________________________________________________________