diff options
| -rw-r--r-- | .config/kak/kakrc | 5 | ||||
| -rwxr-xr-x | .local/bin/vis-clipboard | 4 |
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() { |
