Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi All,
I've looked through the docs (I think I have!) and the forum - but can't find any reference to being able to expand collapsed messages automatically, or select all (or some) and then expand all collapsed messages/fields/etc underneath,
This is for the purpose of cut and paste to documentation or exporting to a text log file.
any suggestions?
Regards Kym
Currently, there's no built-in UI feature for that. However, it's a totally legit feature request (and is quite easy to implement). We could add it to one of the upcoming releases.
At the moment, what can be done instead is a simple plugin to expand ALL records:
class AutoExpandFilterLayer: doc.Layer, log.FoldingFilter { ui.BoolProperty* m_expandProp; construct(doc.PluginHost* pluginHost) { basetype.construct(pluginHost); m_expandProp = pluginHost.m_propertyGrid.createBoolProperty("Expand all records"); pluginHost.m_log.addFoldingFilter(this); } override void restoreDefaultProperties() { m_expandProp.m_value = true; } override uint8_t filter( uint64_t timestamp, uint64_t recordCode, void const* p, size_t size ) { return m_expandProp.m_value ? log.FoldFlags.ExpandAll : 0; } }
Here's an archive with the full plugin:
AutoExpand.7z
After attaching it, all the new foldable records will be expanded by default. You can check/uncheck the "Expand all" property and rebuild the log to expand or collapse all foldable records.
Hope this helps!
Thanks! I'll give it a go.