mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-17 08:33:31 +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,
|
get length() this._messages.length,
|
||||||
|
|
||||||
|
clear: function clear()
|
||||||
|
{
|
||||||
|
this._messages = [];
|
||||||
|
},
|
||||||
|
|
||||||
add: function add(message)
|
add: function add(message)
|
||||||
{
|
{
|
||||||
if (!message)
|
if (!message)
|
||||||
@@ -975,6 +980,11 @@ function CommandLine() //{{{
|
|||||||
},
|
},
|
||||||
{ argCount: "0" });
|
{ argCount: "0" });
|
||||||
|
|
||||||
|
commands.add(["messc[lear]"],
|
||||||
|
"Clear the message history",
|
||||||
|
function () { messageHistory.clear(); },
|
||||||
|
{ argCount: "0" });
|
||||||
|
|
||||||
commands.add(["sil[ent]"],
|
commands.add(["sil[ent]"],
|
||||||
"Run a command silently",
|
"Run a command silently",
|
||||||
function (args)
|
function (args)
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
* add $MY_VIMPERATORRC
|
* add $MY_VIMPERATORRC
|
||||||
* add ' and " local marks
|
* add ' and " local marks
|
||||||
* add "w" and "W" Normal mode mappings for symmetry with o/O and t/T
|
* add "w" and "W" Normal mode mappings for symmetry with o/O and t/T
|
||||||
|
* add :messclear
|
||||||
|
|
||||||
2008-XX-XX:
|
2008-XX-XX:
|
||||||
* version 2.0 (probably)
|
* 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]:mark[c]|| Mark current location within the web page +
|
||||||
||[c]:marks[c]|| Show all location marks of current web page +
|
||[c]:marks[c]|| Show all location marks of current web page +
|
||||||
||[c]:messages[c]|| Display previously given messages +
|
||[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]:mkvimperatorrc[c]|| Write current key mappings and changed options to the config file +
|
||||||
||[c]:nohlsearch[c]|| Remove the search highlighting +
|
||[c]:nohlsearch[c]|| Remove the search highlighting +
|
||||||
||[c]:noremap[c]|| Map a key sequence without remapping keys +
|
||[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<| +
|
||||||
||g<||
|
||g<||
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|||||||
Reference in New Issue
Block a user