Ordering custom libraries

232 views
Skip to first unread message

Jean-François Dumont

unread,
Nov 3, 2016, 7:30:27 AM11/3/16
to draw.io
Hello

i use draw.io with drive,

I create some libraries, i export them in a git repo,  i open them with url style : https://www.draw.io/?splash=0&clibs=Uhttps://placewhere.is/mylibrary01

all  work fine

but each time i open draw.io to create a new diagram or open existant one all my libraires are open but never in the same order. No alphabetic order, no oder by order imports. 
I have about 10 libraries and it's not convenient to search a library that always in another place.
is there a way to keep order ?

second remark, all custom libraries are expanded each time i open draw.io, counter to builtin libraries. 
is there a way libraires are not expanded by default ?

Thanks

JF

Gaudenz Alder

unread,
Nov 3, 2016, 7:58:35 AM11/3/16
to draw.io
That's a bug. We'll fix it in one of the upcoming releases.

jenger

unread,
Dec 2, 2021, 1:21:28 PM12/2/21
to diagrams.net Q&A
Hallo,

I have the same issue today, running diagrams.net 15.8.7 desktop on macOS Monterey - I have created about a dozen libraries that I would like to always be in the same order. However, as with this original post, the custom libraries always open in a random order. This happens with both new and existing diagrams, even if I haven't closed the app. 

The only workaround I have found so far is to close all the libraries, then re-open them one-by-one, in reverse order to how I want them listed - this is very irritating! ;)

Is there a setting I have missed, or is this (still?) a bug?

Assuming I have not missed a setting, it would be great if the libraries could retain their order when a diagram is opened. It would also be great if you could reorder libraries by hand, perhaps by dragging them up and down the list.

Best regards,
--John

diagrams.net Q&A

unread,
Dec 6, 2021, 8:15:41 AM12/6/21
to diagrams.net Q&A
These are local files that were opened via File, Open Library and the order in which those files were opened is changed when the app is restarted? (There is code in 15.8.7 that should fix this so we need to understand what files are opened and how they are opened and what changes in you are seeing under what condition.)

jenger

unread,
Dec 13, 2021, 6:33:48 AM12/13/21
to diagrams.net Q&A
Many thanks for coming back to me on this.

In answer to your question, yes, that is correct - these are local files that are opened in a particular order, but on subsequent app launches, the order is lost and they open in a random order. 

To add some detail re: "local files": My libraries are normally stored in an iCloud Drive folder. After reading your message, I created copies of my libraries on my desktop - i.e. stored locally on my laptop, not in the cloud - and repeated the whole process. I got the same results. So to be 100% clear, I get the same behaviour both when the libraries files are stored locally on my laptop, and when they're stored in iCloud Drive.

I also tried naming the libraries with a number of the start, however the file naming seems to have no impact on library ordering either. 

The only way I have found to reorder the libraries to date, is to close them all from the left panel, then re-open them one-by-one in reverse order (i.e. the library I want at the top should be opened last). This works until the next time I need to open / reload the draw.io app. 

Does this give you the detail you need?

Reply all
Reply to author
Forward
0 new messages