On 13/09/12 10:29, Rainer M Krug wrote:
What about a popup box, asking:
- ----------------
Do you want to close All windows / views of this document or only this one?
All / Only This / Cancel
[ ] Do this from now on automatically
- ----------------
By doing this (if more then one window of a document exists), the user could
costomise the behaviour.
yes, that could be an option. As a basis, I think LyX should have all
the LFUNs to handle these cases, then the GUI behaviour may also be
customised via the .bind files.
Also: There should be a command, below the close,
Close Document Window
which is closing only the one window.
or, perhaps, "Close Document View" or "Close Document Tab", because the
"Window" word already refers to the whole LyX Window, as in File->"New
Window" or File->"Close Window".
On a related note, I find it weird as well that, once you do File->"New
Window", the new LyX window is empty, resembling a whole new LyX
instance. Actually, the View->hidden menu of it would still allow to
open the same files that are already open in the other window. However,
the average user would think such a function creates a new LyX instance,
but such an action is often accessible from the general OS GUI or Window
Manager (e.g., click again on the program icon -- even though in recent
distros with Unity and the like that tends to change).
A more natural behavior (for me) would be that the new LyX window shows
the same buffer that was shown in the other window from where the
command was triggered. Weather or not the new window should have the
same tabs, split views, etc., I don't know. But, at least what I think
is a common use-case, is the one of when you want a second view on the
same buffer you're editing, in a completely different LyX window, e.g.,
to exploit the window manager capabilities on that window (e.g., push to
another monitor or whatever).
Bye,
T.