Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Option to Ignore Changes to Prolog/Revised Date #22

Open
reifsnid opened this issue Mar 7, 2023 · 2 comments
Open

Add Option to Ignore Changes to Prolog/Revised Date #22

reifsnid opened this issue Mar 7, 2023 · 2 comments

Comments

@reifsnid
Copy link

reifsnid commented Mar 7, 2023

Let's say I make a couple of minor revisions to a DITA topic, for example, fixing some typos and refactoring a bulleted list into a table. The contents of the topic itself have not fundamentally changed; therefore, I want the revised date of the topic to remain unchanged. Else my readers might expect to see brand new content.

It is understood and accepted that the addon automatically updates the revised date to the current day, regardless of the type of change, which is expected.

However, when attempting to manually override the automatically updated revised date to the previous date, the addon automatically changes the manually overridden date to the current date preventing me from manually overriding the date.

I would like an option in the Preferences to have the addon ignore any changes made to the prolog and any of its child elements. This will enable me to manually override the updated revised date in these instances where I determine that the contents of the topic have not actually changed.

Thanks!

@DunaMariusCosmin
Copy link
Collaborator

Hi,

Thank you for your feedback!
I'm afraid that this behaviour will be hard to implement in the text page from Oxygen.
What do you think about adding a button on the toolbar to disable the updating?
If the document doesn't have fundamentally changed, you will be able to easily disable the update before saving. Or when you manually change something in the prolog elements.
Note that you can remove the content automatically added by the add-on using the undo action. After undo, you will be able to disable the update and save it again.

As a workaround, you can disable the updating using the "Enable automatic prolog update on save" option from the "Plugins / DITA Prolog Updater" preferences page.

Best regards,
Cosmin

@reifsnid
Copy link
Author

reifsnid commented Mar 8, 2023

Hi Cosmin,

Thank you for the reply! That's unfortunate that it would be hard to implement that behavior though. :(

While it's not ideal, a button on the toolbar to enable/disable the updating would be an acceptable workaround. I've also explored using a simple text editor to modify the revised date after saving the file in Oxygen, which also isn't ideal.

Thank you for considering this feature request!

Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants