From 8b77acf4268486eff210ddb50ff366dc13d95257 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 26 May 2025 01:13:35 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-26 01:13:35 --- .config/kak/autoload/surround.kak | 1 + .config/kak/autoload/ui-mode.kak | 3 +++ .config/kak/kakrc | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/kak/autoload/surround.kak b/.config/kak/autoload/surround.kak index ad1a1ade..2d6166f6 100644 --- a/.config/kak/autoload/surround.kak +++ b/.config/kak/autoload/surround.kak @@ -61,6 +61,7 @@ define-command -hidden surround-replace-sub -params 1 %{ } surround-delete-key %arg{1} execute-keys H' + fi else printf '%s' 'info -title surround "Canceled"' fi diff --git a/.config/kak/autoload/ui-mode.kak b/.config/kak/autoload/ui-mode.kak index de4053e7..c6621a8a 100644 --- a/.config/kak/autoload/ui-mode.kak +++ b/.config/kak/autoload/ui-mode.kak @@ -1,3 +1,4 @@ +provide-module ui-mode %~ declare-user-mode ui map -docstring "UI" global user u ": enter-user-mode ui" @@ -60,6 +61,7 @@ define-command ui-scrolloff-toggle -docstring "toggle scrolloff" %{ fi echo "set-option window scrolloff $final" + notify-send "$final" } } @@ -83,3 +85,4 @@ define-command autowrap-toggle -docstring "toggle autowrap" %{ } map -docstring 'toggle autowrap' global ui a ": autowrap-toggle" +~ diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 927a4e07..e75fd109 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -5,6 +5,8 @@ require-module fishr require-module surround require-module ficgrep require-module byline +set-option global scrolloff 3,3 +require-module ui-mode require-module luar set-option global luar_interpreter luajit @@ -25,7 +27,7 @@ hook global ModuleLoaded wayland %{ set-option global tabstop 4 set-option global indentwidth 4 -set-option global scrolloff 3,3 +# set-option global base_scrolloff 3,3 define-command -override tree-sitter-user-after-highlighter %{ add-highlighter -override buffer/show-matching show-matching