jsme-editor / jsme-editor.github.io

73 stars 19 forks source link

Allow Templates to Connect to Target Molecule by Bond Replacement/Fusion #46

Open AspenBB opened 4 months ago

AspenBB commented 4 months ago

JSME is an excellent tool, thanks for making it available!

I was wondering if it is possible to have JSME connect a template fragment to an existing molecule by bond replacement (replacing a clicked bond in the target molecule with a marked bond or a marked pair of bonded atoms of the template fragment) instead of just by bond creation (forming a bond between a clicked atom in the target molecule and and a marked atom of the template fragment).

Currently it seems JSME does not allow this. Apologies if it is possible and I am just not seeing it...

In the normal (non-template) operation of JSME with benzene placement as the active action, for example, one can quickly create naphthalene by first placing a benzene and then clicking on one of the C-C bonds to get naphthalene.

I think it would be quite useful to be able to do this kind of thing with template fragments.

Thanks!