dotfiles/.config/kak/autoload/util.kak

11 lines
275 B
Text

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