We finish. Previous parts: [ 1
], [ 2
]. Memorization combinations: undo / redo, search / replace.
At the end of the topic is a link to a PDF with a generalized cheat sheet and its source (see the screenshot of the editor).
Undoing actions by default does not work and requires the launch of the editor with the option “undo support” (yes, nano doesn’t support undo by default). Command line key -u.
nano -u sometext.
After that, the commands start working:
Note that in the help (Ctrl-G) it also appears only if you run nano with the option -u.
If nano is started without -u, then the only form of undo is to cancel
cut lines by inserting them back -
With the search a little better.
Although regexp support is claimed, I was not able to achieve it, so the search is just a substring.
Re-search (without the appearance of a dialogue) -
There is no re-replacement, because when replacing, a “yes / no, cancellation, all” request is displayed.
Multi-buffering (the ability to have multiple open files).
Enabled by the
command. After that, the
buttons (or without the shift: Alt-., Alt-, (alt point, alt comma)) work.
Last feature: the ability to enter text by code:
- inserts the specified decimal code (255), and for entering lower ASCII codes you can use the
key combination, for example, Alt-V Ctrl-Z.
Perhaps, on this editor can be considered mastered, the rest of his features (changing the indent for a paragraph, alignment for a paragraph, etc.) are no longer needed for comfortable work in an emergency.