AutoYADM commit: 2025-05-11 00:07:08

This commit is contained in:
Daniel Fichtinger 2025-05-11 00:07:08 -04:00
parent 491b7794e1
commit 7d53867bc3
2 changed files with 24 additions and 4 deletions

View file

@ -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<ret>'
map global vertical-selection e ': vertical-selection-up<ret>'
map global vertical-selection v ': vertical-selection-up-and-down<ret>'
map -docstring "select alike down" global vertical-selection n ': vertical-selection-down<ret>'
map -docstring "select alike up" global vertical-selection e ': vertical-selection-up<ret>'
map -docstring "select alike up & down" global vertical-selection v ': vertical-selection-up-and-down<ret>'
map global user v ": enter-user-mode vertical-selection<ret>"
}
bundle kakoune-text-objects https://github.com/Delapouite/kakoune-text-objects %{

View file

@ -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<ret>"
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 "<a-|> wl-copy<ret>"