summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Vink <ivi@vinkies.net>2025-03-10 13:35:34 +0000
committerMike Vink <ivi@vinkies.net>2025-03-10 13:35:34 +0000
commit96063f8a24285d4f3fd8681e76d5f5c4f9f1ddd3 (patch)
tree4929da762267fc6e7f2ada3384f557dd76af2886
parent3b8b8fab06d03b051a0369162da3285c2a75ce94 (diff)
add clipboard integration kakoune
-rw-r--r--.config/kak/kakrc5
-rwxr-xr-x.local/bin/vis-clipboard4
2 files changed, 6 insertions, 3 deletions
diff --git a/.config/kak/kakrc b/.config/kak/kakrc
index b6d961d..0bbf98f 100644
--- a/.config/kak/kakrc
+++ b/.config/kak/kakrc
@@ -9,4 +9,7 @@ map -docstring "Jump to previous grep match" global goto p <esc>:grep-previous-m
map -docstring "Jump to next make error" global goto ] <esc>:make-next-error<ret>
map -docstring "Jump to previous make error" global goto [ <esc>:make-previous-error<ret>
-# define-command -docstring "edit relative"
+# define-command -docstring "edit relative"
+hook global RegisterModified '"' %{ nop %sh{
+ printf %s "$kak_main_reg_dquote" | vis-clipboard --copy
+}}
diff --git a/.local/bin/vis-clipboard b/.local/bin/vis-clipboard
index ccb9237..df28f4b 100755
--- a/.local/bin/vis-clipboard
+++ b/.local/bin/vis-clipboard
@@ -148,11 +148,11 @@ vc_xclip_paste() {
}
vc_osc_copy() {
- osc copy
+ osc copy -d /dev/tty
}
vc_osc_paste() {
- osc paste
+ osc paste -d /dev/tty
}
vc_mac_copy() {