On 2009-03-18, Pavel Sanda wrote: > Jean-Marc Lasgouttes wrote: >> Pavel Sanda <sa...@lyx.org> writes:
>> >> What is this branch_inset_insert thing. It looks kind of wrong. >> > >> > the purpose is to automatically insert the branch inset after establishing >> > new branch. >> I am not so sure that this is helpful enough to deserve this combined >> function. > how you want to do it more helpful? when i need new branch inset i want to > do it directly by one menu click. How about a unified functionality that would also fix bugs 4462 and 5851: 1. Branch insets for (yet) undefined branches can be inserted in a document via: a) copy and paste from another document, b) select a branch from Insert>Branches>Master>... in a child document with named master, c) select Insert>Branches>New Branch. 2. Branches that have instances (branch insets) in a document but are not defined are automatically added to the branches list with default settings (in an update function?). 3. (Optional) The defaults for new branches can be set in the Document>Settings>Branches dialogue, e.g. adding a line to the config table like e.g.: Existing branches: +------------------------------+ | Branch | Active | Colour | [Remove] +------------------------------+ | |_ foo y X | [Change Colour] | | +------------------------------+ New branch: +------------------------------+ | newbranch y X | +------------------------------+ This would allow configuring the defaults in templates as well. * Inserting a new branch inset would be a one-click action, e.g. Insert>Branches>New Branch for a yet undefined branch or Insert>Branches>Parent>.... for a branch defined in the parent doc. In both cases, the lfun isert-branch [name] could be used (with a different replacement for [name], of course). * Undefined branches would get default name and settings, branches from a parent doc would inherit the parent settings. * Configuring could be done via the context menu (provided that bug 4128 "renaming branches not possible" is fixed). Günter