Start merge tabs

This commit is contained in:
Matt 2020-08-20 16:50:49 +01:00
parent c9d9730726
commit 29b5042872
No known key found for this signature in database
GPG key ID: 2DD462FE98BF38C2

View file

@ -423,6 +423,22 @@ class TabWaiter {
this.updateTabProgress(inputNum, progress, total, "output"); this.updateTabProgress(inputNum, progress, total, "output");
} }
/**
* Merge selected inputs into a single input
* @param {Array[number]} inputNums - list of input indices to merge
* @param {string} inputDelimeter - character to delimit the input merge
* @param {boolean} keepInputs - whether to persist inputs used in merge
*/
async mergeTabs(inputNums, inputDelimeter, keepOld) {
if (inputNums.length <= 1) {
throw new Error("Cannot merge a single tab.");
}
const allInputData = await Promise.all(inputNums.map(this.manager.input.getInputValue));
}
} }
export default TabWaiter; export default TabWaiter;