Page 1 of 1

Cloning a document

Posted: 13 Dec 2022 09:23
by vha
Using 15.68 64-bit

In older versions, when opening a clone, changes in one of the 2 windows were also applied in the other window.

Now it is opened as "filename.ext (1).ext" and modifications in one window are not applied in the other window.

If this is not a bug, can you add an option to have the old behavior back?

Tx, vha

Re: Cloning a document

Posted: 13 Dec 2022 14:16
by Rickard Johansson
One of the reasons it was changed is that we already have a feature that does almost exactly the same thing. Vertical or horizontal split.

And I think a clone as an exact copy of the original makes much more sense.

Re: Cloning a document

Posted: 13 Dec 2022 15:07
by vha
But the split is only for one document and when you're using TextEd with 2 panes, vertically splitting a document creates a 3rd pane instead of opening it in the right pane

vha

Re: Cloning a document

Posted: 13 Dec 2022 15:31
by Rickard Johansson
Well, perhaps you could add a feature request for: "Split to left/right document view" ?

I've removed all old cloning code, but it shouldn't be too hard to add the split view to its own tab. Maybe change the tab caption to *Split* name.ext, or something.

Re: Cloning a document

Posted: 13 Dec 2022 20:31
by Rickard Johansson
Well, that was easy. I've added new menu items to split document to the right (or left) document view, in v15.70. It actually works quite nicely. The file name in the split tab is enclosed by **. E.g. **MyFile.txt**.
Below is the info added to the history file.

Split document window to another document view
In this version you can split the current document window to a new tab in another document view. E.g. split the current document to a new tab to the right document view.

A new menu item has been added to the document tab context menu called "Split document window". It also contain the items to split vertically or horizontally.

Re: Cloning a document

Posted: 14 Dec 2022 10:00
by vha
Tooooooo gooooooood...

Tx, vha