mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-07 22:05:47 +01:00
document :echomsg
This commit is contained in:
@@ -470,17 +470,17 @@ function CommandLine() //{{{
|
||||
var echoCommands = [
|
||||
{
|
||||
name: "ec[ho]",
|
||||
description: "Display a string at the bottom of the window",
|
||||
description: "Echo the expression",
|
||||
action: liberator.echo
|
||||
},
|
||||
{
|
||||
name: "echoe[rr]",
|
||||
description: "Display an error string at the bottom of the window",
|
||||
description: "Echo the expression as an error message",
|
||||
action: liberator.echoerr
|
||||
},
|
||||
{
|
||||
name: "echom[sg]",
|
||||
description: "Display a message at the bottom of the window saving it in the message history",
|
||||
description: "Echo the expression as an informational message",
|
||||
action: liberator.echomsg
|
||||
}
|
||||
];
|
||||
|
||||
@@ -7,20 +7,27 @@ INTRO TO BE WRITTEN...
|
||||
|:ec| |:echo| +
|
||||
||:ec[ho] {expr}||
|
||||
________________________________________________________________________________
|
||||
Display a string at the bottom of the window. Useful for showing informational
|
||||
messages. Multiple lines can be separated by \n.
|
||||
{expr} can either be a quoted string, or any expression which can be fed to
|
||||
eval() like 4+5. You can also view the source code of objects and functions if
|
||||
the return value of {expr} is an object or function.
|
||||
Echo the expression. Useful for showing informational messages. Multiple lines
|
||||
can be separated by \n. {expr} can either be a quoted string, or any
|
||||
expression which can be fed to eval() like 4+5. You can also view the source
|
||||
code of objects and functions if the return value of {expr} is an object or
|
||||
function.
|
||||
________________________________________________________________________________
|
||||
|
||||
|
||||
|:echoe| |:echoerr|
|
||||
||:echoe[rr] {expr}|| +
|
||||
________________________________________________________________________________
|
||||
Display an error string at the bottom of the window. Just like [c]:ec[ho][c],
|
||||
but echoes the result highlighted in red. Useful for showing important
|
||||
messages.
|
||||
Echo the expression as an error message. Just like [c]:ec[ho][c], but echoes
|
||||
the result highlighted as ErrorMsg and saves it to the message history.
|
||||
________________________________________________________________________________
|
||||
|
||||
|
||||
|:echoe| |:echomsg|
|
||||
||:echom[sg] {expr}|| +
|
||||
________________________________________________________________________________
|
||||
Echo the expression as an infomational message. Just like [c]:ec[ho][c], but
|
||||
also saves the message in the the message history.
|
||||
________________________________________________________________________________
|
||||
|
||||
|
||||
|
||||
@@ -167,8 +167,9 @@ section:Ex{nbsp}commands[ex-cmd-index,:index]
|
||||
||:doautoall|| Apply the autocommands matching the specified URL to all buffers +
|
||||
||:doautocmd|| Apply the autocommands matching the specified URL to the current buffer +
|
||||
||:downloads|| Show progress of current downloads +
|
||||
||:echo|| Display a string at the bottom of the window +
|
||||
||:echoerr|| Display an error string at the bottom of the window +
|
||||
||:echo|| Echo the expression +
|
||||
||:echoerr|| Echo the expression as an error message +
|
||||
||:echomsg|| Echo the expression as an informational message +
|
||||
||:emenu|| Execute the specified menu item from the command-line +
|
||||
||:execute|| Execute the argument as an Ex command +
|
||||
||:exusage|| List all Ex commands with a short description +
|
||||
|
||||
Reference in New Issue
Block a user