I'm trying to create a keyboard shortcut to add date to my class notes in Lyx so that they are organized better. I want the shortcut to add the notes on the left.
That is, I just want to add the following, with the current date each time.
The following keyboard shortcut does half the job:
command-sequence ert-insert; self-insert \reversemarginpar; char-forward; marginalnote-insert; self-insert 2017-05-07; char-forward
However, the date is not assigned dynamically. Is it possible to make the date be filled automatically based on current writing (not compiling) date?