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.
This commit is contained in:
Benno Schulenberg 2022-08-12 10:40:35 +02:00
parent 3785f762fc
commit 2a515058be
1 changed files with 5 additions and 6 deletions

View File

@ -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,