mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-31 17:33:35 +02:00
Add new :messclear command to clear the message history.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 +
|
||||
|
||||
@@ -12,6 +12,13 @@ Display previously given messages.
|
||||
________________________________________________________________________________
|
||||
|
||||
|
||||
|:messc| |:messclear| +
|
||||
||:messc[lear]||
|
||||
________________________________________________________________________________
|
||||
Clear the message history.
|
||||
________________________________________________________________________________
|
||||
|
||||
|
||||
|g<| +
|
||||
||g<||
|
||||
________________________________________________________________________________
|
||||
|
||||
Reference in New Issue
Block a user