commit 2a515058be6b7d185d47c8d454c13894216daadf
parent 3785f762fcc44595a6197cb9644b8f49b126536f
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Fri, 12 Aug 2022 10:40:35 +0200
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.
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git 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[1;6D|sed 's/.*/\U&/'" main
-# bind Sh-M-L "Oc[1;6D|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 -ibu" 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,