From a3ccdaee457e966e03743ee4f09852b532da5e2a Mon Sep 17 00:00:00 2001 From: Emily Grace Seville Date: Sun, 8 Jan 2023 18:07:06 +1000 Subject: [PATCH] nano: refresh page (#8055) * Prettify nano: - better grammar - standardize page - more general examples * Better command title * Add `Pico` mention in command title * Update pages/common/nano.md * Update pages/common/nano.md * Apply suggestions from code review * Update pages/common/nano.md --- pages/common/nano.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pages/common/nano.md b/pages/common/nano.md index 337bf652f..85e2c18a3 100644 --- a/pages/common/nano.md +++ b/pages/common/nano.md @@ -1,28 +1,32 @@ # nano -> Simple, easy to use command-line text editor. An enhanced, free Pico clone. +> Command-line text editor. An enhanced `Pico` clone. > More information: . -- Open a new file in nano: +- Start the editor: `nano` -- Open a specific file: +- Start the editor without using configuration files: -`nano {{path/to/file}}` +`nano --ignorercfiles` -- Open a specific file, positioning the cursor at the specified line and column: +- Open specific files, moving to the next file when closing the previous one: + +`nano {{path/to/file1 path/to/file2 ...}}` + +- Open a file and position the cursor at a specific line and column: `nano +{{line}},{{column}} {{path/to/file}}` -- Open a specific file and enable soft wrapping: +- Open a file and enable soft wrapping: `nano --softwrap {{path/to/file}}` -- Open a specific file and indent new lines to the previous lines' indentation: +- Open a file and indent new lines to the previous line's indentation: `nano --autoindent {{path/to/file}}` -- Open nano and create a backup file (`file~`) when saving edits: +- Open a file and create a backup file (`path/to/file~`) on save: `nano --backup {{path/to/file}}`