1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 23:24:12 +01:00
Files
pentadactyl-pm/vimperator/locale/en-US/eval.txt
Doug Kearns 41f7bc12be Fix missing help pages resulting from non-well-formed markup.
Most of the special case asciidoc replacements were also removed since
they're a bit confusing and doing so results in a 60% improvement in the
time taken by asciidoc to process the help pages.  Unfortunately, I'm
now limited to preparing a three course menu for my guests while it runs
rather than the degustation extravaganzas of the past but such is life.

It's still a bit of a mess but since we're almost certainly moving to
something else in the near future it's probably not worth cleaning it up
before 2.0 is released.
2008-12-29 22:52:04 +11:00

85 lines
3.5 KiB
Plaintext

HEADER
|expression| |expr| |eval| +
INTRO TO BE WRITTEN...
|:ec| |:echo| +
||:ec[ho] {expr}||
________________________________________________________________________________
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}|| +
________________________________________________________________________________
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.
________________________________________________________________________________
|:echom| |:echomsg|
||:echom[sg] {expr}|| +
________________________________________________________________________________
Echo the expression as an informational message. Just like [c]:ec[ho][c], but
also saves the message in the message history.
________________________________________________________________________________
|:exe| |:execute|
||:exe[cute] {expr}|| +
________________________________________________________________________________
Execute the string that results from the evaluation of {expr} as an Ex command.
Example: [c]:execute "source " + io.getRCFile().path[c] sources the appropriate
RC file.
Note: Unlike Vim this currently only supports a single argument.
________________________________________________________________________________
|:js| |:javas| |:javascript|
||:javas[cript] \\{cmd\\}|| +
||:javascript <<\\{endpattern\\}\n\\{script\\}\n\\{endpattern\\}|| +
||:javascript[!]||
________________________________________________________________________________
Run any JavaScript command through eval(). Acts as a JavaScript interpreter by
passing the argument to `eval()`.
[c]:javascript alert("Hello world")[c] shows a dialog box with the text "Hello world".
[c]:javascript <<EOF[c] reads all the lines until a line starting with "EOF"
is found, and interpret them with the JavaScript _eval()_ function.
The special version [c]:javascript![c] opens the JavaScript console of
Firefox.
[m]<Tab>[m] completion is available for [c]:javascript {cmd}<Tab>[c] (but not
yet for the [c]:js <<EOF[c] multiline widget). Be aware that Vimperator needs
to run {cmd} through eval() to get the completions, which could have unwanted
side effects.
________________________________________________________________________________
// >> To make the syntax highlighting happy
|:let|
||:let {var-name} [+-.]= {expr1}|| +
||:let {var-name}|| +
||:let||
________________________________________________________________________________
Sets or lists a variable. Sets the variable {var-name} to the value of the
expression {expr1}. If no expression is given, the value of the variable is
displayed.Without arguments, displays a list of all variables.
________________________________________________________________________________
|:unl| |:unlet|
||:unl[et][!] {name} ...|| +
________________________________________________________________________________
Deletes the variable {name}. Several variable names can be given. When used
with [!] no error message is output for non-existing variables.
________________________________________________________________________________
// vim: set syntax=asciidoc: