nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit e9b0a574904d82e54918f0c1710428fcf5fa81f1
parent 2fca581095b9f1edfd6ec5b235b0c1f66eba4d07
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  4 Nov 2024 16:20:19 +0100

docs: put a space after "|" and before "{enter}" in the sample nanorc

This makes the example bindings slightly more legible.

Also improve a comment.

Diffstat:
Mdoc/sample.nanorc.in | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in @@ -291,13 +291,13 @@ # unbind M-T main ## (Those functions are still accessible through ^T^J and ^T^V.) -## For quickly uppercasing or lowercasing the word under or after the cursor. +## For quickly uppercasing or lowercasing the word that the cursor is on. ## (These effectively select a word and pipe it through a sed command.) -# bind Sh-M-U "{nextword}{mark}{prevword}{execute}|sed 's/.*/\U&/'{enter}" main -# bind Sh-M-L "{nextword}{mark}{prevword}{execute}|sed 's/.*/\L&/'{enter}" main +# bind Sh-M-U "{nextword}{mark}{prevword}{execute}| sed 's/.*/\U&/' {enter}" main +# bind Sh-M-L "{nextword}{mark}{prevword}{execute}| sed 's/.*/\L&/' {enter}" main ## For copying a marked region to the system clipboard: -# bind Sh-M-C "{execute}|xsel -ib{enter}{undo}" main +# bind Sh-M-C "{execute}| xsel -ib {enter}{undo}" main ## For normalizing Unicode to precomposed characters: # bind Sh-M-N "{execute}| uconv -x nfc {enter}" main