OpenChemistry/avogadrolibs

Better selection of default elements in the drop-down

Closed this issue · 2 comments

Though elements are normally selected using keyboard shortcuts, I think it'd be a good idea to revise the list of elements that are quickly accessed (i.e. without the periodic table) from the drop-down menu of the Draw Tool.

Due to the need to specify geometry, metal atoms for complexes are these days best inserted using the Template Tool, so TMs like tungsten and rhenium are not necessary to have in the quick access imo.

Amongst elements commonly needed by organic chemists, selenium and iodine are the notable omissions from the p-block. Arsenic, argon, and tellurium seem like odd choices, though, and I'd suggest removal.

For creating salts I would have thought that lithium, sodium, potassium, and magnesium would be sensible inclusions.

This would be only one net addition so I don't think the list would be too unyieldy.

If there aren't objections I'll implement it myself.

It just remembers the elements you've used. I don't have tungsten or rhenium in mine, nor arsenic, argon or tellurium.

There's a very small default list, and then it saves any custom elements you add as a user:

if (m_defaultElements.isEmpty()) {

Ah, I see! I'll note that in the docs.