Mark Fletcher wrote: > I like that you can use F2+z to "unset" a conref, but I think this > binding should let you toggle between unsetting and resetting the > conref. It seems clunky that to reset an existing conref, I have to be > prompted with a dialog and click OK. > > In case you're interested, here's how I've customized the code: > > <binding> > <keyPressed code="F2" /> > <charTyped char="z" /> > <command name="unsetOrResetConref"/> > </binding> > > <command name="unsetOrResetConref"> > <macro> > <choice> > <sequence> > <pass><command name="dita.setConref" parameter="[unset]" /></pass> > <command name="dita.setConref" parameter="[unset]" /> > </sequence> > <sequence> > <test expression="@conref and @conref!=''" > context="$implicitElement"/> > <set variable="clipboard" expression="@conref" > context="$implicitElement"/> > <command name="dita.setConref" parameter="[clipboard]"/> > </sequence> > </choice> > </macro> > </command> >
Thank you for your contribution. We'll consider improving this in next release. We didn't expect users to "unset" conrefs very often, that's why the "F2 z" approach is a bit crude. The main use of un-transcluding a conref is to add an attribute, typically an id, which has been forgotten at the setConref time, to the conref source.

