diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in index 8f4b3df4..e74c1077 100644 --- a/doc/sample.nanorc.in +++ b/doc/sample.nanorc.in @@ -284,14 +284,13 @@ # unbind M-T main ## (Those functions are still accessible through ^T^J and ^T^V.) -## 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 +## For quickly uppercasing or lowercasing the word under or after the cursor. +## (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 ## For copying a marked region to the system clipboard: -# bind Sh-M-T "|xsel -ib u" main +# bind Sh-M-T "{execute}|xsel -ib{enter}{undo}" 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,