nano

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

commit 74c6bdac9f7a49973847c1a49cf864c8e4092b7f
parent 73168bb1b991abe4eb73c1b12531cb2128b2b5b0
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 10 Jun 2021 10:36:37 +0200

docs: add example bindings for uppercasing and lowercasing a word

(The diff looks weird in 'less' -- the "c" before the "^T" hides
two escape sequences.)

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

diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in @@ -265,6 +265,12 @@ ## <Ctrl+Backspace> delete the word to the left of the cursor with: # bind ^H chopwordleft main +## For quickly uppercasing or lowercasing the word under the cursor. +## (These effectively do a Ctrl+Right followed by a Shift+Ctrl+Left, +## and then pipe the selected text through a sed command.) +#bind Sh-M-U "Oc|sed 's/.*/\U&/'" main +#bind Sh-M-L "Oc|sed 's/.*/\L&/'" main + ## If you would like nano to have keybindings that are more "usual", ## such as ^O for Open, ^F for Find, ^H for Help, and ^Q for Quit, ## then uncomment these: