AutoYADM commit: 2025-07-09 12:36:02

This commit is contained in:
Daniel Fichtinger 2025-07-09 12:36:02 -04:00
parent eb90548054
commit 5289d1995f
2 changed files with 19 additions and 6 deletions

View file

@ -1,3 +1,15 @@
define-command markdown-fmt-impl %{
evaluate-commands -save-regs "fbs/" %{
set-register b %reg{percent}
execute-keys -draft '%"fy'
edit -scratch
set-register s %reg{percent}
set-register / '(?S)^\h*!\[.*\]\(.*\)$'
execute-keys '%s<ret>c<lt>!--FICMD<c-r>#--<gt>'
# format
}
}
hook global WinSetOption filetype=markdown %{
# explicitly load to avoid race condition
set-option window comment_line ''