From 2a515058be6b7d185d47c8d454c13894216daadf Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 12 Aug 2022 10:40:35 +0200 Subject: [PATCH] docs: replace control codes in the examples with {command} cartouches This avoids https://savannah.gnu.org/bugs/?61720. Problem existed since version 5.8, commit 74c6bdac. --- doc/sample.nanorc.in | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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,