From 02dc30968a5ec05a034e765081e0e3bdf06ee244 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 4 Aug 2025 11:10:27 +0200 Subject: [PATCH] feat: update kdl and helix --- dot_config/helix/config.toml | 15 +++++++++++++++ dot_config/zellij/config.kdl.tmpl | 8 +------- private_dot_ssh/private_executable_config.tmpl | 5 +++-- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/dot_config/helix/config.toml b/dot_config/helix/config.toml index b71a749..4012703 100644 --- a/dot_config/helix/config.toml +++ b/dot_config/helix/config.toml @@ -6,6 +6,10 @@ mouse = false true-color = true end-of-line-diagnostics = "hint" +[editor.clipboard-provider.custom] +yank = { command = "voidpin", args = ["paste"] } +paste = { command = "voidpin", args = ["copy"] } + [editor.inline-diagnostics] cursor-line = "warning" # show warnings and errors on the cursorline inline @@ -17,3 +21,14 @@ hidden = false [keys.select."space".v] "c" = ":pipe-to voidpin remote copy" + +[keys.normal.space.o] +e = [ + ":sh rm -f /tmp/unique-file-h21a434", + ":insert-output noil edit '%{buffer_name}' --chooser-file=/tmp/unique-file-h21a434 --commit --quiet < /dev/tty", + ":insert-output echo \"x1b[?1049h\" > /dev/tty", + ":open %sh{cat /tmp/unique-file-h21a434}", + ":redraw", + ':set mouse false', + ':set mouse true', +] diff --git a/dot_config/zellij/config.kdl.tmpl b/dot_config/zellij/config.kdl.tmpl index 6b19062..f4dc43b 100644 --- a/dot_config/zellij/config.kdl.tmpl +++ b/dot_config/zellij/config.kdl.tmpl @@ -278,13 +278,7 @@ default_layout "compact" // // copy_command "xclip -selection clipboard" // x11 -{{ if .homebrew }} -copy_command "pbcopy" -{{ else }} -copy_command "wl-copy" // wayland -{{ end }} - - +copy_command "voidpin copy" // Choose the destination for copied text // Allows using the primary selection buffer (on x11/wayland) instead of the system clipboard. diff --git a/private_dot_ssh/private_executable_config.tmpl b/private_dot_ssh/private_executable_config.tmpl index b14bb10..962277a 100644 --- a/private_dot_ssh/private_executable_config.tmpl +++ b/private_dot_ssh/private_executable_config.tmpl @@ -7,9 +7,10 @@ Host github.com ForwardAgent yes {{ if .homebrew -}} UseKeychain yes - {{ end -}} + {{ else }} IdentitiesOnly yes IdentityFile ~/.ssh/github + {{ end }} Host front Hostname 10.0.9.0 @@ -42,7 +43,7 @@ Host server IdentityFile ~/.ssh/id_clank Host nef - Hostname 192.168.96.153 + Hostname 192.168.89.204 User kjuulh PubKeyAuthentication yes IdentitiesOnly yes