Saved connections and stacks open remote on the right panel
Local left, remote right — the commander convention. Panel-dropdown connects still target the panel they were opened from. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+2
-6
@@ -92,12 +92,8 @@ export class App {
|
|||||||
if (action.startsWith('connect:')) {
|
if (action.startsWith('connect:')) {
|
||||||
const connection = await this.findConnection(action.slice('connect:'.length));
|
const connection = await this.findConnection(action.slice('connect:'.length));
|
||||||
if (connection) {
|
if (connection) {
|
||||||
void this.panels.connectPanel(
|
// remote goes right, local stays left — the commander convention
|
||||||
this.panels.activeSide(),
|
void this.panels.connectPanel('right', connection, connection.name, connection.localDir);
|
||||||
connection,
|
|
||||||
connection.name,
|
|
||||||
connection.localDir,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -335,8 +335,9 @@ export class PanelsService {
|
|||||||
this.newWorkspace();
|
this.newWorkspace();
|
||||||
}
|
}
|
||||||
// connectPanel resolves the panel synchronously (before awaiting), so
|
// connectPanel resolves the panel synchronously (before awaiting), so
|
||||||
// firing these back-to-back binds each connection to its own tab
|
// firing these back-to-back binds each connection to its own tab.
|
||||||
void this.connectPanel('left', connection, connection.name, connection.localDir);
|
// Remote goes right, local stays left — the commander convention.
|
||||||
|
void this.connectPanel('right', connection, connection.name, connection.localDir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user