1 Dec 2004 03:31
[patch] autoclose collapsables
This is quick implementation of a long-standing feature request: autoopening/closing collapsables. This is really easy with the new scheme (most of this patch is a replace of status_ -> status()) On a side note, we should keep the following tree bools of insetcollapsable.h inside a "metrics cache" so they can be different in different bufferviews (and so one can open an inset in one of them and close it in another). How will these heterogeneous type caches (among different insets) would be best handled? What comes obviously to mind is a static map<BufferView *, something> in insetcollapsable.C. Or would it be better to have a more general mechanism somehow/where? /// mutable CollapseStatus status_; /// a substatus of the Open status, determined automatically in metrics mutable bool openinlined_; /// the inset will automatically open when the cursor is inside mutable bool autoOpen_; Opinions? Alfredo
Alfredo
We had that and we removed it...
We had some flak that led us to add this feature... then we removed it
again and then heard nothing...
I do not think we should add this feature, and most of all not now.
New features -> 1.5
RSS Feed