mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
nano: refresh (#6235)
This commit is contained in:
parent
a14b294866
commit
057a416929
1 changed files with 11 additions and 7 deletions
|
@ -3,22 +3,26 @@
|
|||
> Simple, easy to use command-line text editor. An enhanced, free Pico clone.
|
||||
> More information: <https://nano-editor.org>.
|
||||
|
||||
- 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}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue