drawio icon indicating copy to clipboard operation
drawio copied to clipboard

[Feature request] File specific properties (not page specific, not editor config)

Open theonlynexus opened this issue 2 years ago • 6 comments

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe. Not related

Describe the solution you'd like The ability to set properties per file (globally) instead of just per page, or per shape, would be much appreciated.

Describe alternatives you've considered Right now I create a page, set the properties, and they get carried over to any copy. But, when the moment to change their values come, I have to go through them page-by-page. So an alternative might be the ability to easily clone properties from one page to a set of others.

theonlynexus avatar Jul 01 '22 06:07 theonlynexus

Does this help? https://www.diagrams.net/doc/faq/configure-diagram-editor

mararad avatar Jul 01 '22 12:07 mararad

Thanks for the reply. It kind of helps, but not really.

To clarify: this would require me to setup the editor in the same way for every user, which is really not the way to go about it.

What I would really like to have, are variables that are file specific. Imagine setting a variable to indicate the author, or the title of the file: by using editor-global variables those would be replaced every time someone opens the file on a different computer, which is undesired.

I hope I am making sense.

theonlynexus avatar Jul 01 '22 14:07 theonlynexus

I upvote this feature.

Some of my files are 25 pages long and include the document version number and last modification date.

As a workaround, I export the file as an uncompressed XML file, open it with my favourite text editor (i.e Notepad++) and replace all occurences of the properties I want to change (i.e version="3.2" by version="3.3"), save and reimport the xml file. Not the perfect solution but it definitely beats updating (Ctrl+M) every page by hand.

Guillaurent avatar Oct 13 '22 10:10 Guillaurent

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Apr 11 '23 11:04 stale[bot]

It would be great if under menu Extras\Configuration you could have one JSON section for globalVars and one json section for localDocVars , and then all pages in a doc could reference these using %localDocVar_no1% etc

ianfinlay-aus avatar Jul 19 '23 06:07 ianfinlay-aus