summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@telfort.nl>2022-09-18 10:38:48 +0200
committerBenno Schulenberg <bensberg@telfort.nl>2022-09-18 10:44:05 +0200
commit5b654ce9fb1c115871457b61eb003d70c832a720 (patch)
tree21488711c7d6f2f5ea8b2668fdf588592024e29b
parent98e9a881c039fcc4f813a8f1d51ba9c9d2b131c4 (diff)
downloadnano-5b654ce9.tar.gz
docs: suggest a key binding for snipping trailing blanks
This addresses https://savannah.gnu.org/bugs/?63062.
-rw-r--r--doc/sample.nanorc.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/sample.nanorc.in b/doc/sample.nanorc.in
index e74c107..f3c7ea3 100644
--- a/doc/sample.nanorc.in
+++ b/doc/sample.nanorc.in
@@ -292,6 +292,9 @@
## For copying a marked region to the system clipboard:
# bind Sh-M-T "{execute}|xsel -ib{enter}{undo}" main
+## For snipping trailing blanks when you save a file:
+# bind ^S "{execute}| sed 's/\s\+$//' {enter}{savefile}" 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: