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,8 +1,9 @@
function kakrc --description "Edit kakrc. -c to force a new session."
if test "$argv[1]" != -c || test "$argv[1]" != new
kak-session -nokakdaemon ~/.config/kak/kakrc
else
kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc
end
function kakrc --description "Edit kakrc"
# if test "$argv[1]" != -c || test "$argv[1]" != new
# kak-session -nokakdaemon ~/.config/kak/kakrc
# else
# kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc
# end
kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc -s kakrc
end

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 ''