Skip to content

shortcut to insert date & time #3292

Answered by dmaluka
jonas-frey asked this question in Q&A
Discussion options

You must be logged in to vote

Either run this command in micro:

bind Alt-d "command:textfilter date -u +%Y-%m-%d-%H-%M-%S"

or manually add this binding to your ~/.config/micro/bindings.json:

    "Alt-d": "command:textfilter date -u +%Y-%m-%d-%H-%M-%S",

(Replace Alt-d with the shortcut you want.)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jonas-frey
Comment options

@dmaluka
Comment options

Answer selected by jonas-frey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants