From 74c6bdac9f7a49973847c1a49cf864c8e4092b7f Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 10 Jun 2021 10:36:37 +0200 Subject: [PATCH] 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.) --- doc/sample.nanorc.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in index ed24c086..6f364e02 100644 --- a/doc/sample.nanorc.in +++ b/doc/sample.nanorc.in @@ -265,6 +265,12 @@ ## 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: