Charles Dye
Super Moderator
- May
- 5,220
- 147
Staff member
I'm curious whether other folks think this would be a useful idea, or whether it's just another smelly brain fart.
How about a key, e.g. Ctrl-D, which inserts the current date and/or time at the prompt, as per an environment variable DATEKEY? DATEKEY would be interpreted as the format param to @DATEFMT. So, if DATEFMT=%F, then pressing Ctrl-D would insert 2020-04-05 at the prompt. (And if DATEKEY is undefined, the keystroke would do nothing.)
Would anybody actually use such a feature?
How about a key, e.g. Ctrl-D, which inserts the current date and/or time at the prompt, as per an environment variable DATEKEY? DATEKEY would be interpreted as the format param to @DATEFMT. So, if DATEFMT=%F, then pressing Ctrl-D would insert 2020-04-05 at the prompt. (And if DATEKEY is undefined, the keystroke would do nothing.)
Would anybody actually use such a feature?