Request for menu option in nvUltra to insert a time stamp
CompletedI do interstitial journaling and would like to time-stamp every journal entry. Right now, I do it with the shortcut app. Rather tedious.
Please add a menu option to insert date and time at the cursor position. Add a settings option to format the date/time (ISO etc., w/wo hours/minutes …).
THX
-
You mean like the text expansion shortcuts in the Advanced Preferences pane that support standard date time formatting amongst other things?
:)
Check out the `default.json` file for some examples.
0 -
THX for the quick reply - much appreciated!!
Yes, exactly.
Can you tell me how I can get 24h instead of AM/PM in .dts? Is it possible to localize the month names?
I'm used to work with YYYY-MM-dd EEEE HH:mm type of description.. I'm not familiar with json.
0 -
JSON has nothing to do with it. These are standard strftime formatting (as linked to by the nvUltra help document that Brett compiled – https://documentation.help/C-Cpp-Reference/strftime.html or http://www.cplusplus.com/reference/ctime/strftime/).
Your OS is responsible for expanding them, so localization is up to the OS.
0 -
Finally I found my way. I had to swap 2 short text strings in the default.json file for the .dts expansion:
{
"key": ".dts",
"expansion": "%Y-%m-%d %H:%M" (was before: %I:%M%p)
}
and now it works.Have a great sunday!
My next challenge is getting used to the modal system, working with folders and files …
0 -
Glad things are working for you!
The text expansion functionality is pretty useful for anything you do repetitively.0
Please sign in to leave a comment.
Comments
5 comments