From 1b09632650cab78e210fb853bad9bc07f957236f Mon Sep 17 00:00:00 2001 From: Cairn Date: Fri, 2 Sep 2022 09:49:05 -0400 Subject: [PATCH] mg: add page (#8441) * mg: add page * Fix description * Fix example * Compress description to one line * Remove unnecessary comma --- pages/common/mg.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/mg.md diff --git a/pages/common/mg.md b/pages/common/mg.md new file mode 100644 index 000000000..e4c998813 --- /dev/null +++ b/pages/common/mg.md @@ -0,0 +1,20 @@ +# mg + +> A small, fast, and portable text editor based on `emacs`. +> More information: . + +- Open a file for editing: + +`mg {{path/to/file}}` + +- Open a file at a specified line number: + +`mg +{{line_number}} {{path/to/file}}` + +- Open files in a read-only mode: + +`mg -R {{path/to/file1 path/to/file2 ...}}` + +- Disable `~` backup files while editing: + +`mg -n {{path/to/file}}`