From 02c81dde2851b7bcee30a7d0fbb77ff5f910a742 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 16 May 2025 16:43:07 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-16 16:43:07 --- .config/kak/autoload/format.kak | 2 +- .config/kak/kakrc | 27 +++++++++++++++------------ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.config/kak/autoload/format.kak b/.config/kak/autoload/format.kak index 0dc79c4f..009c4c20 100644 --- a/.config/kak/autoload/format.kak +++ b/.config/kak/autoload/format.kak @@ -29,7 +29,7 @@ define-command format-buffer-pipe -hidden -docstring "Format the contents of the } } -define-command format-selections-pipe -docstring "Format the selections individually using pipe" %{ +define-command format-selections-pipe -hidden -docstring "Format the selections individually using pipe" %{ evaluate-commands %sh{ if [ -z "${kak_opt_formatcmd}" ]; then echo "fail 'The option ''formatcmd'' must be set'" diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 837a9374..2bd28ba6 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -43,15 +43,17 @@ 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" + echo -markup "{Information}wrap normal = } -define-command ui-wrap-disable -docstring "disable wrap" %{ +defin-buffere-command ui-wrap-disable -docstring "disable wrap" %{ +defin-buffere-command ui-wrap-disable -docstring "disable wrap" %{ remove-highlighter window/wrap - echo -markup "{Information}wrap disabled" + echo -markup "{Information}wrap normal = } -define-command -override ui-wrap-toggle -docstring "toggle wrap" %{ +defin-buffere-command -override ui-wrap-toggle -docstring "toggle wrap" %{ +defin-buffere-command -override ui-wrap-toggle -docstring "toggle wrap" %{ try %{ ui-wrap-enable } catch %{ ui-wrap-disable } } map -docstring "toggle soft wrap" global ui w ": ui-wrap-toggle" @@ -90,7 +92,7 @@ define-command autowrap-toggle -docstring "toggle autowrap" %{ } } -map -docstring "toggle autowrap" global ui a ": autowrap-toggle" +# map -docstring "toggle autowrap" global ui a ": autowrap-toggle" hook global WinCreate .* %{ ui-wrap-enable @@ -107,7 +109,8 @@ map -docstring "quit" global user q ": q" map -docstring "quit" global normal ": q" map -docstring "quit" global user Q ": q!" map -docstring "quit" global normal ": q!" -# map -docstring "save" global normal ": w" +map -docstring "save" global normal ": w" + map -docstring "close current buffer" global user x ": db" map -docstring "goto previous buffer" global user m ": bp" @@ -125,7 +128,8 @@ map global normal _ # map global normal # map global normal 'p' -map -docstring "commenct line" global normal ":comment-line" +map -docstring "comment line" global normal "#" ": comment-line" +map -docstring "comment block" global normal "" ": comment-block" declare-user-mode git map -docstring "git" global user g ": enter-user-mode git" map -docstring "lazygit kak cwd" global git g ": terminal lazygit" @@ -145,7 +149,8 @@ define-command git-blame %{ } map -docstring "blame" global git b ": git-blame" -map -docstring "format" global user F ": format" +map -docstring "format" global normal = ": format-buffer" +map -docstring "format" global normal ": format-selections" # Case-insensitive Search map -docstring 'case insensitive search' global user '/' /(?i) @@ -154,8 +159,8 @@ map -docstring 'case insensitive extend search' global user '?' ?(?i) map -docstring 'case insensitive backward extend-search' global user '' (?i) # Arrow keys for menu selections -map -docstring 'Select next menu' global prompt -map -docstring 'Select previous menu' global prompt +# map -docstring 'Select next menu' global prompt +# map -docstring 'Select previous menu' global prompt hook global InsertCompletionShow .* %{ map window insert map window insert @@ -181,5 +186,3 @@ define-command -hidden helix-up %{ } } -# map -docstring 'Helix scroll up' global normal ": helix-up" -