vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 8796a88d0430de4bb748cf45f14488309424a62a parent 1128b4aebf58505cb144e5f2044b0da7121cf8d5 Author: Matěj Cepl <mcepl@cepl.eu> Date: Fri, 23 Dec 2022 19:10:03 +0100 Support selection of primary or regular clipboard (wayclip) wayclip has since commit https://git.sr.ht/~noocsharp/wayclip/commit/594776c24862 support for the choice between using primary or regular clipboard. Which means we can put its support on the same level as other clipboard utilities. Diffstat:
| M | vis-clipboard | | | 12 | ++++++++++-- |
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/vis-clipboard b/vis-clipboard @@ -101,11 +101,19 @@ vc_wlclipboard_paste() { } vc_wayclip_copy() { - waycopy + if [ "$sel" = "primary" ]; then + waycopy -p + else + waycopy + fi } vc_wayclip_paste() { - waypaste + if [ "$sel" = "primary" ]; then + waypaste -p + else + waypaste + fi } vc_xsel_copy() {