AutoYADM commit: 2025-07-09 14:22:03
This commit is contained in:
parent
0947338afb
commit
ee833820f0
3 changed files with 17 additions and 9 deletions
|
@ -4,13 +4,17 @@ define-command markdown-fmt %{
|
|||
# block level images regex
|
||||
set-register / '(?S)^\h*!\[.*\]\(.*\)$'
|
||||
# select, yank, replace with comment
|
||||
try %{
|
||||
execute-keys '%s<ret>"lyc<lt>!--img𝅙img--<gt><esc>'
|
||||
}
|
||||
# pass to formatter
|
||||
format
|
||||
# select the comments, replace with original image
|
||||
set-register / '(?S)^\h*<!--img𝅙img-->'
|
||||
try %{
|
||||
execute-keys '%s<ret>"lR'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=markdown %{
|
||||
|
|
11
.config/kak/autoload/util.kak
Normal file
11
.config/kak/autoload/util.kak
Normal file
|
@ -0,0 +1,11 @@
|
|||
define-command \
|
||||
-docstring %{
|
||||
Insert the date, with the args passed as a string
|
||||
to date -d
|
||||
} \
|
||||
insert-date -params 1.. %{
|
||||
evaluate-commands -draft -save-regs '|' %{
|
||||
set-register | "date -d '%arg{@}' -f +%%Y-%%m-%%d"
|
||||
execute-keys '|<ret>'
|
||||
}
|
||||
}
|
|
@ -17,18 +17,11 @@ require-module ui-mode
|
|||
require-module colemak
|
||||
require-module clipboard
|
||||
|
||||
try %{
|
||||
colorscheme ashen
|
||||
} catch %{
|
||||
colorscheme ashen-local
|
||||
}
|
||||
|
||||
try %{
|
||||
%opt{on_server}
|
||||
set-option global clipboard_copy_cmd %<base64 | tr -d '\n' | awk '{print "\033]52;c;" $0 "\a"}'>
|
||||
colorscheme ashen-local
|
||||
} catch %{
|
||||
colorscheme ashen
|
||||
source %exp{%val{config}/extra.kak}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue