AutoYADM commit: 2025-07-09 12:36:02
This commit is contained in:
parent
eb90548054
commit
5289d1995f
2 changed files with 19 additions and 6 deletions
|
@ -1,8 +1,9 @@
|
||||||
function kakrc --description "Edit kakrc. -c to force a new session."
|
function kakrc --description "Edit kakrc"
|
||||||
if test "$argv[1]" != -c || test "$argv[1]" != new
|
# if test "$argv[1]" != -c || test "$argv[1]" != new
|
||||||
kak-session -nokakdaemon ~/.config/kak/kakrc
|
# kak-session -nokakdaemon ~/.config/kak/kakrc
|
||||||
else
|
# else
|
||||||
kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc
|
# kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc
|
||||||
end
|
# end
|
||||||
|
kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc -s kakrc
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -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 %{
|
hook global WinSetOption filetype=markdown %{
|
||||||
# explicitly load to avoid race condition
|
# explicitly load to avoid race condition
|
||||||
set-option window comment_line ''
|
set-option window comment_line ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue