From 7d53867bc3323f09aa1debbaa2fa17c0e5208d8f Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sun, 11 May 2025 00:07:08 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-11 00:07:08 --- .config/kak/autoload/plugins.kak | 8 +++++--- .config/kak/kakrc | 20 +++++++++++++++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/.config/kak/autoload/plugins.kak b/.config/kak/autoload/plugins.kak index 8f47f8cc..687c63db 100644 --- a/.config/kak/autoload/plugins.kak +++ b/.config/kak/autoload/plugins.kak @@ -61,9 +61,11 @@ bundle kakoune-buffers https://github.com/Delapouite/kakoune-buffers %{ bundle vertical-selection https://github.com/occivink/kakoune-vertical-selection %{ declare-user-mode vertical-selection - map global vertical-selection n ': vertical-selection-down' - map global vertical-selection e ': vertical-selection-up' - map global vertical-selection v ': vertical-selection-up-and-down' + map -docstring "select alike down" global vertical-selection n ': vertical-selection-down' + map -docstring "select alike up" global vertical-selection e ': vertical-selection-up' + map -docstring "select alike up & down" global vertical-selection v ': vertical-selection-up-and-down' + map global user v ": enter-user-mode vertical-selection" + } bundle kakoune-text-objects https://github.com/Delapouite/kakoune-text-objects %{ diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 0a0da695..4e32bc53 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -44,7 +44,25 @@ define-command -override tree-sitter-user-after-highlighter %{ add-highlighter global/ number-lines -hlcursor -relative -separator " " add-highlighter global/ show-whitespaces -lf "" -tab "" -only-trailing add-highlighter global/ show-matching -add-highlighter global/ wrap -word -indent +add-highlighter global/wrap wrap -word -indent + +declare-user-mode ui +map -docstring "UI" global user u ": enter-user-mode ui" + +define-command ui-wrap-enable -docstring "enable wrap" %{ + add-highlighter window/wrap wrap -word -indent + echo -markup "{Information}wrap enabled" +} + +define-command ui-wrap-disable -docstring "disable wrap" %{ + remove-highlighter window/wrap + echo -markup "{Information}wrap disabled" +} + +hook global WinCreate %{ + add-highlighter window/wrap wrap -word -indent + +} map -docstring "yank the selection into the clipboard" global user y " wl-copy"