Add preserveCWD option

This commit is contained in:
Labhansh Agrawal 2022-01-08 16:17:38 +05:30
parent cc550b7c73
commit f79006bae1
4 changed files with 19 additions and 3 deletions

View file

@ -45,12 +45,12 @@ export function requestTermGroup(activeUid: string) {
dispatch({
type: TERM_GROUP_REQUEST,
effect: () => {
const {ui} = getState();
const {ui, sessions} = getState();
const {cwd} = ui;
rpc.emit('new', {
isNewGroup: true,
cwd,
activeUid
activeUid: activeUid ? activeUid : sessions.activeUid
});
}
});

1
lib/config.d.ts vendored
View file

@ -50,6 +50,7 @@ export type configOptions = {
cmdIsMeta: boolean;
};
padding: string;
preserveCWD: boolean;
quickEdit: boolean;
screenReaderMode: boolean;
scrollback: number;