From 057a416929bd8f572e144f11a01281eebd64a832 Mon Sep 17 00:00:00 2001 From: CleanMachine1 <78213164+CleanMachine1@users.noreply.github.com> Date: Wed, 28 Jul 2021 15:10:07 +0100 Subject: [PATCH] nano: refresh (#6235) --- pages/common/nano.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pages/common/nano.md b/pages/common/nano.md index d586723d9..337bf652f 100644 --- a/pages/common/nano.md +++ b/pages/common/nano.md @@ -3,22 +3,26 @@ > Simple, easy to use command-line text editor. An enhanced, free Pico clone. > More information: . +- Open a new file in nano: + +`nano` + - Open a specific file: `nano {{path/to/file}}` -- Open a file positioning the cursor at the specified line and column: +- Open a specific file, positioning the cursor at the specified line and column: `nano +{{line}},{{column}} {{path/to/file}}` -- Enable smooth scrolling: +- Open a specific file and enable soft wrapping: -`nano -S {{filename}}` +`nano --softwrap {{path/to/file}}` -- Indent new lines to the previous lines' indentation: +- Open a specific file and indent new lines to the previous lines' indentation: -`nano -i {{filename}}` +`nano --autoindent {{path/to/file}}` -- Before modification, backup separately as `{{current_file_name}}~`: +- Open nano and create a backup file (`file~`) when saving edits: -`nano -B {{filename}}` +`nano --backup {{path/to/file}}`