[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Commenting several lines
From: |
Benno Schulenberg |
Subject: |
Re: Commenting several lines |
Date: |
Wed, 19 Jan 2022 15:29:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
Hi Sébastien,
Op 19-01-2022 om 14:50 schreef Seb:
> Today, I selected several lines from a text file (with ^6), then pressed #
> expecting each selected line to now begin with a #.
The keystroke you are looking for is M-3 or, in your case, <Esc> <3>.
> Or perhaps it was a future option of Nano that visited me in my sleep?
:)
> Unfortunately I lack the correct
> keyword to locate it in up-to-date online man page at
> https://www.nano-editor.org/dist/latest/nano.html#Nanorc-Files
The function keyword is 'comment', located right after 'unindent'.
In my nanorc file it says:
bind M-K comment main
because M-K is easier to remember (and I don't need the toggle).
Benno
OpenPGP_signature
Description: OpenPGP digital signature