fix(split-view): le split cree un pane vide (sans copie ni transfert d onglet)
CI / lint (push) Successful in 29s
CI / security (push) Successful in 21s
CI / test (push) Successful in 38s
CI / build (push) Failing after 15s
CI / e2e (push) Skipped
Desktop Build / build-windows (push) Canceled after 0s
Desktop Build / build-linux (push) Canceled after 0s
CI / lint (push) Successful in 29s
CI / security (push) Successful in 21s
CI / test (push) Successful in 38s
CI / build (push) Failing after 15s
CI / e2e (push) Skipped
Desktop Build / build-windows (push) Canceled after 0s
Desktop Build / build-linux (push) Canceled after 0s
- la copie de l onglet actif etait dedupe (fichier deja ouvert dans le pane source) et le transfert clavier (200ms) vidait le pane source -> auto-collapse -> grid disparu - comportement coherent avec le menu contextuel : pane vide, l utilisateur y glisse ses fichiers
This commit is contained in:
@@ -692,8 +692,6 @@ const PaneManager = {
|
||||
this.layout = 'horizontal';
|
||||
if (this.panes.length === 0) {
|
||||
this._buildGrid(2);
|
||||
// Copy active tab to the new pane
|
||||
this._copyActiveTabToNewPane();
|
||||
} else {
|
||||
this._addPane();
|
||||
}
|
||||
@@ -706,7 +704,6 @@ const PaneManager = {
|
||||
this.layout = 'vertical';
|
||||
if (this.panes.length === 0) {
|
||||
this._buildGrid(2);
|
||||
this._copyActiveTabToNewPane();
|
||||
} else {
|
||||
this._addPane();
|
||||
}
|
||||
@@ -1362,14 +1359,6 @@ if (typeof window !== 'undefined') {
|
||||
e.preventDefault();
|
||||
if (PaneManager._hasAnyTab()) {
|
||||
PaneManager.splitRight();
|
||||
// Transfer active tab to new pane
|
||||
const tm = PaneManager.getActiveTabManager();
|
||||
if (tm && tm._activeTabId) {
|
||||
setTimeout(() => {
|
||||
const newPaneId = PaneManager.panes.length - 1;
|
||||
PaneManager.transferTab(PaneManager.activePaneId === newPaneId ? 0 : PaneManager.activePaneId, tm._activeTabId, newPaneId);
|
||||
}, 200);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (e.ctrlKey && e.altKey && e.shiftKey && e.key === '\\') {
|
||||
|
||||
Reference in New Issue
Block a user