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>
Mark Fletcher
Workday(tm)
www.workday.com <http://www.workday.com/>
925-951-9053 (office)
mark.fletcher at workday.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060808/98012b57/attachment.htm