]> git.lizzy.rs Git - micro.git/blobdiff - runtime/help/commands.md
Merge remote-tracking branch 'zyedidia/master' into pm
[micro.git] / runtime / help / commands.md
index 31f64cc08027c5090d6caa103bafed3811e7679a..aacbdbb515b8419c7e9e5b1712e9454c570f683d 100644 (file)
@@ -5,7 +5,8 @@ Here are the possible commands that you can use.
 
 * `quit`: Quits micro.
 
-* `save`: Saves the current buffer.
+* `save filename?`: Saves the current buffer. If the filename is provided it will
+   'save as' the filename.
 
 * `replace "search" "value" flags`: This will replace `search` with `value`. 
    The `flags` are optional.
@@ -21,6 +22,12 @@ Here are the possible commands that you can use.
 * `setlocal option value`: sets the option to value locally (only in the current
    buffer).
 
+* `show option`: shows the current value of the given option.
+
+* `eval "expression"`: Evaluates a Lua expression. Note that micro will not
+   print anything so you should use `messenger:Message(...)` to display a
+   value.
+
 * `run sh-command`: runs the given shell command in the background. The 
    command's output will be displayed in one line when it finishes running.