AutoYADM commit: 2025-07-11 17:47:01
This commit is contained in:
parent
1ec996a1e1
commit
9c6d92bfeb
3 changed files with 7 additions and 9 deletions
|
@ -8,7 +8,7 @@ define-command markdown-fmt %{
|
||||||
execute-keys -draft '%s<ret>"lyc<lt>!--img𝅙img--<gt><esc>'
|
execute-keys -draft '%s<ret>"lyc<lt>!--img𝅙img--<gt><esc>'
|
||||||
}
|
}
|
||||||
# pass to formatter
|
# pass to formatter
|
||||||
format
|
evaluate-commands -draft %{ format }
|
||||||
# select the comments, replace with original image
|
# select the comments, replace with original image
|
||||||
set-register / '(?S)^\h*<!--img𝅙img-->'
|
set-register / '(?S)^\h*<!--img𝅙img-->'
|
||||||
try %{
|
try %{
|
||||||
|
|
|
@ -8,7 +8,7 @@ provide-module repl %∴
|
||||||
edit -scratch
|
edit -scratch
|
||||||
execute-keys '"aR'
|
execute-keys '"aR'
|
||||||
set-register | %{
|
set-register | %{
|
||||||
awk -v cmds="define-command|declare-option" '
|
awk -v cmds="define-command|provide-module" '
|
||||||
$0 ~ cmds {
|
$0 ~ cmds {
|
||||||
if ($0 !~ /-override/) {
|
if ($0 !~ /-override/) {
|
||||||
sub(/(foo-bar|define-command)/, "& -override")
|
sub(/(foo-bar|define-command)/, "& -override")
|
||||||
|
@ -21,4 +21,7 @@ provide-module repl %∴
|
||||||
delete-buffer
|
delete-buffer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
define-command execute-file %{
|
||||||
|
execute-keys -draft '%: execute-selection<ret>'
|
||||||
|
}
|
||||||
∴
|
∴
|
||||||
|
|
|
@ -165,14 +165,9 @@ define-command goto-debug %{
|
||||||
map -docstring 'open debug buffer' global user d ':goto-debug<ret>'
|
map -docstring 'open debug buffer' global user d ':goto-debug<ret>'
|
||||||
|
|
||||||
declare-filetype-mode kak
|
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
|
require-module repl
|
||||||
|
map -docstring 'execute selection' global kak x ': execute-selection<ret>'
|
||||||
|
map -docstring 'execute file' global kak X ': execute-file<ret>'
|
||||||
|
|
||||||
# jumplist
|
# jumplist
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue