AI Positron - Looking for suggestion on <critdates>

Oxygen general issues.
Subathra
Posts: 8
Joined: Tue Apr 22, 2025 4:35 pm

AI Positron - Looking for suggestion on <critdates>

Post by Subathra »

Hi,
I am preparing a custom AI Positron action JSON file for including metadata. I want to know if there is any way to update the <created> and <revised modified> dates for <critdates> from Git history or Oxygen XML topic properties. Any help on this would be great. Thanks!
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: AI Positron - Looking for suggestion on <critdates>

Post by Radu »

Hi,

Oxygen has support to expand a number of editor variables, they are documented here:
https://www.oxygenxml.com/doc/versions/ ... ables.html
For example the

Code: Select all

${date(yyyy-MM-dd'T'HH:MM)}
editor variable expands to the current date with the specified pattern.
And inside AI actions you can use parameters which can use Oxygen editor variables as values, I added a sample action here:
https://github.com/oxygenxml-incubator/ ... rolog.json
So maybe obtaining the current system date will be useful to you, we do not have editor variables or functions to access Git related properties.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Subathra
Posts: 8
Joined: Tue Apr 22, 2025 4:35 pm

Re: AI Positron - Looking for suggestion on <critdates>

Post by Subathra »

Thanks, Radu. Do we have any option to pull the created date from Oxygen topic properties itself?

For the new topics, we can use the current date for created as well as revised. But for the existing topics, adding the created date value manually will definitely consume a lot of time.
Post Reply