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

This commit is contained in:
Daniel Fichtinger 2025-07-11 17:47:01 -04:00
parent 1ec996a1e1
commit 9c6d92bfeb
3 changed files with 7 additions and 9 deletions

View file

@ -8,7 +8,7 @@ define-command markdown-fmt %{
execute-keys -draft '%s<ret>"lyc<lt>!--img𝅙img--<gt><esc>'
}
# pass to formatter
format
evaluate-commands -draft %{ format }
# select the comments, replace with original image
set-register / '(?S)^\h*<!--img𝅙img-->'
try %{

View file

@ -8,7 +8,7 @@ provide-module repl %∴
edit -scratch
execute-keys '"aR'
set-register | %{
awk -v cmds="define-command|declare-option" '
awk -v cmds="define-command|provide-module" '
$0 ~ cmds {
if ($0 !~ /-override/) {
sub(/(foo-bar|define-command)/, "& -override")
@ -21,4 +21,7 @@ provide-module repl %∴
delete-buffer
}
}
define-command execute-file %{
execute-keys -draft '%: execute-selection<ret>'
}

View file

@ -165,14 +165,9 @@ define-command goto-debug %{
map -docstring 'open debug buffer' global user d ':goto-debug<ret>'
declare-filetype-mode kak
# TODO: automatically add -override for overridable commands?
define-command exec-selection %{
execute-keys ':<c-r>.<ret>'
}
map -docstring 'execute selection' global kak x ': exec-selection<ret>'
require-module repl
map -docstring 'execute selection' global kak x ': execute-selection<ret>'
map -docstring 'execute file' global kak X ': execute-file<ret>'
# jumplist