nano: refresh (#6235)

This commit is contained in:
CleanMachine1
2021-07-28 15:10:07 +01:00
committed by GitHub
parent a14b294866
commit 057a416929

View File

@@ -3,22 +3,26 @@
> Simple, easy to use command-line text editor. An enhanced, free Pico clone. > Simple, easy to use command-line text editor. An enhanced, free Pico clone.
> More information: <https://nano-editor.org>. > More information: <https://nano-editor.org>.
- Open a new file in nano:
`nano`
- Open a specific file: - Open a specific file:
`nano {{path/to/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}}` `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}}`