I would like to know how to create an entry in a clip library that will include the current date with that entry. For example:
I insert a comment like this with textpad inserting the proper date where "%current date% is the place holder for todays date.
# -----start comment -----
# version 1.0
# searchby: hjn
# date: %current date%
#
# Fetch the previous or specified event, execute it, and then
# replace the current history item with that event.
#
# Arguments:
# event (optional) index of history item to redo. Defaults
# to -1, which means the previous event.
#
# Results:
# The result is that of the command being redone. Also replaces
# the current history list item with the one being redone.
# ------end comment------
Thanks,
Harold
How to enter the current date from a clip library.
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
RE: How to enter the current date from a clip libr
I don't think this will work.
Clippings do not (yet) support variables (except the placeholder for the selection).
So this would be a job for a macro, except it is not possible to insert a specific clipping via a macro. So you could still write a macro where you type all your comment up to the place for the current date, insert the current date and type the rest of your macro.
Or use a clipping/macro combination.
put your comment as you typed it above into the clip library, and write a macro that finds %current date% and then inserts the current date.
Andreas
Clippings do not (yet) support variables (except the placeholder for the selection).
So this would be a job for a macro, except it is not possible to insert a specific clipping via a macro. So you could still write a macro where you type all your comment up to the place for the current date, insert the current date and type the rest of your macro.
Or use a clipping/macro combination.
put your comment as you typed it above into the clip library, and write a macro that finds %current date% and then inserts the current date.
Andreas
RE: How to enter the current date from a clip libr
Thanks for the ideas. Unfortunately, they were something that I had already thought about. Although, the second idea did make me think about it in a different way that would be a feasible solution for now.
Perhaps this will be a new feature in upcoming versions. It would really be handy to have a single keystroke to accomplish this task.
In the meantime I will implement the second option, and hope that I dont forget to run the macro before I close my template.
Harold
Perhaps this will be a new feature in upcoming versions. It would really be handy to have a single keystroke to accomplish this task.
In the meantime I will implement the second option, and hope that I dont forget to run the macro before I close my template.
Harold
RE: How to enter the current date from a clip libr
You can assign a keyboard shortcut to the commands EditLongDate or EditShortDate under Keyboard in Preferences.
Hpoe this helps.
Hpoe this helps.