Add SaveAs action and command

Fixes #340

You can bind the action `SaveAs` and if you provide an argument to
the `save` command it will save as. For example `> save test.txt`.
This commit is contained in:
Zachary Yedidia
2016-09-08 14:13:46 -04:00
parent 1739f0631a
commit 301e86a46e
5 changed files with 26 additions and 5 deletions

View 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.

View File

@@ -143,6 +143,7 @@ Delete
Center
InsertTab
Save
SaveAs
Find
FindNext
FindPrevious