1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-13 19:45:46 +01:00

document :echomsg

This commit is contained in:
Doug Kearns
2008-11-10 02:53:46 +00:00
parent 91fa8dddff
commit 588c545f64
3 changed files with 21 additions and 13 deletions

View File

@@ -470,17 +470,17 @@ function CommandLine() //{{{
var echoCommands = [ var echoCommands = [
{ {
name: "ec[ho]", name: "ec[ho]",
description: "Display a string at the bottom of the window", description: "Echo the expression",
action: liberator.echo action: liberator.echo
}, },
{ {
name: "echoe[rr]", 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 action: liberator.echoerr
}, },
{ {
name: "echom[sg]", 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 action: liberator.echomsg
} }
]; ];

View File

@@ -7,20 +7,27 @@ INTRO TO BE WRITTEN...
|:ec| |:echo| + |:ec| |:echo| +
||:ec[ho] {expr}|| ||:ec[ho] {expr}||
________________________________________________________________________________ ________________________________________________________________________________
Display a string at the bottom of the window. Useful for showing informational Echo the expression. Useful for showing informational messages. Multiple lines
messages. Multiple lines can be separated by \n. can be separated by \n. {expr} can either be a quoted string, or any
{expr} can either be a quoted string, or any expression which can be fed to expression which can be fed to eval() like 4+5. You can also view the source
eval() like 4+5. You can also view the source code of objects and functions if code of objects and functions if the return value of {expr} is an object or
the return value of {expr} is an object or function. function.
________________________________________________________________________________ ________________________________________________________________________________
|:echoe| |:echoerr| |:echoe| |:echoerr|
||:echoe[rr] {expr}|| + ||:echoe[rr] {expr}|| +
________________________________________________________________________________ ________________________________________________________________________________
Display an error string at the bottom of the window. Just like [c]:ec[ho][c], Echo the expression as an error message. Just like [c]:ec[ho][c], but echoes
but echoes the result highlighted in red. Useful for showing important the result highlighted as ErrorMsg and saves it to the message history.
messages. ________________________________________________________________________________
|: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.
________________________________________________________________________________ ________________________________________________________________________________

View File

@@ -167,8 +167,9 @@ section:Ex{nbsp}commands[ex-cmd-index,:index]
||:doautoall|| Apply the autocommands matching the specified URL to all buffers + ||:doautoall|| Apply the autocommands matching the specified URL to all buffers +
||:doautocmd|| Apply the autocommands matching the specified URL to the current buffer + ||:doautocmd|| Apply the autocommands matching the specified URL to the current buffer +
||:downloads|| Show progress of current downloads + ||:downloads|| Show progress of current downloads +
||:echo|| Display a string at the bottom of the window + ||:echo|| Echo the expression +
||:echoerr|| Display an error string at the bottom of the window + ||: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 + ||:emenu|| Execute the specified menu item from the command-line +
||:execute|| Execute the argument as an Ex command + ||:execute|| Execute the argument as an Ex command +
||:exusage|| List all Ex commands with a short description + ||:exusage|| List all Ex commands with a short description +