AutoYADM commit: 2025-07-11 17:01:31

This commit is contained in:
Daniel Fichtinger 2025-07-11 17:01:31 -04:00
parent 6b7c794136
commit c5fe1d3d91
6 changed files with 30 additions and 19 deletions

View file

@ -18,6 +18,7 @@ define-command -override false fail
require-module ui-mode
require-module colemak
require-module clipboard
require-module root
try %{
%opt{on_server}
@ -171,9 +172,7 @@ define-command exec-selection %{
map -docstring 'execute selection' global kak x ': exec-selection<ret>'
define-command repl %{
new %{ edit -scratch; set buffer filetype kak }
}
require-module repl
# jumplist
@ -187,12 +186,12 @@ map -docstring 'add selection' global normal Y <a-Z>a
require-module url-open
map -docstring "Open URL" global goto u '<esc>: url-open<ret>'
# apply and validate niri config
hook global BufWritePost .*/\.config/niri/.*\.kdl(##.+)? %{
try %{
nop %sh{
yadm alt >/dev/null
}
} catch %{
fail gamer sippy
eval %sh{
yadm alt >/dev/null
if ! niri validate >/dev/null; then
echo 'info "Error in niri config, check *debug*"'
fi
}
}