AutoYADM commit: 2025-07-13 15:44:01
This commit is contained in:
parent
fc5c32183c
commit
7800c50eeb
1 changed files with 5 additions and 3 deletions
|
@ -1,13 +1,15 @@
|
|||
define-command \
|
||||
-docstring %{
|
||||
Insert the date, with the args passed as a string
|
||||
to date -d.
|
||||
Replace the selections with the date, with the args passed as a
|
||||
string to date -d.
|
||||
} \
|
||||
insert-date -params 0.. %{
|
||||
evaluate-commands -draft -save-regs '|"' %{
|
||||
set-register | "date -d '%arg{@}' '+%%Y-%%m-%%d' | tr -d '\n'"
|
||||
echo -debug "Inserting date: %reg{pipe}"
|
||||
# we delete the trailing newline
|
||||
execute-keys '!<ret>'
|
||||
execute-keys '|<ret>'
|
||||
}
|
||||
}
|
||||
|
||||
alias global date insert-date
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue