Add profile > new window menu

This commit is contained in:
Labhansh Agrawal 2023-07-01 00:37:04 +05:30
parent 354c0aa7dd
commit fd20ce660a
9 changed files with 38 additions and 17 deletions

View file

@ -20,7 +20,7 @@ function requestSplit(direction: 'VERTICAL' | 'HORIZONTAL') {
effect: () => {
const {ui, sessions} = getState();
const activeUid = _activeUid ? _activeUid : sessions.activeUid;
const profile = _profile ? _profile : activeUid ? sessions.sessions[activeUid].profile : undefined;
const profile = _profile ? _profile : activeUid ? sessions.sessions[activeUid].profile : window.profileName;
rpc.emit('new', {
splitDirection: direction,
cwd: ui.cwd,
@ -51,7 +51,7 @@ export function requestTermGroup(_activeUid: string | undefined, _profile: strin
const {ui, sessions} = getState();
const {cwd} = ui;
const activeUid = _activeUid ? _activeUid : sessions.activeUid;
const profile = _profile ? _profile : activeUid ? sessions.sessions[activeUid].profile : undefined;
const profile = _profile ? _profile : activeUid ? sessions.sessions[activeUid].profile : window.profileName;
rpc.emit('new', {
isNewGroup: true,
cwd,