summaryrefslogtreecommitdiff
diff options
authorBenno Schulenberg <[email protected]>2025-10-12 12:28:35 +0200
committerBenno Schulenberg <[email protected]>2025-10-14 11:23:09 +0200
commitffc456ebac645f2c5f93169d60e4d7043c80a0b4 (patch)
treeae8284522c232787280693d3b4f55e6d9cc8c7da
parent4b7ec23db3c860e58c2697bd34619cf3b7c26730 (diff)
downloadnano-master.tar.gz
docs: add example of copy-to-clipboard-with-OSC52 to the sample nanorcHEADmaster
-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 e559356f..9741a0fe 100644
--- a/doc/sample.nanorc.in
+++ b/doc/sample.nanorc.in
@@ -299,6 +299,9 @@
## For copying a marked region to the system clipboard:
# bind Sh-M-C "{execute}| xsel -ib {enter}{undo}" main
+## For copying text to the local clipboard via OSC52 (if terminal supports it).
+# bind M-* "{execute}|| printf "\033]52;c;%s\007" "$(base64 | tr -d '\n')" {enter}{undo}" main
+
## For normalizing Unicode to precomposed characters:
# bind Sh-M-N "{execute}| uconv -x nfc {enter}" main