aboutsummaryrefslogtreecommitdiff
path: root/src/background/controllers/OperationController.ts
diff options
context:
space:
mode:
authorchocolateboy <chocolate@cpan.org>2019-07-28 05:35:07 +0100
committerchocolateboy <chocolate@cpan.org>2019-07-28 20:34:53 +0100
commit6605d3ea99c364a8f5f9d98a33e3ac89afb035f7 (patch)
tree341b3d4f6a7916e62ce1d96bdd440c6295c45a8c /src/background/controllers/OperationController.ts
parent3db11041c5b75c30b584893937876b6471e67cf2 (diff)
Add an option to close the current tab and select the tab to the left
Add an option to tabs.close to close the current tab and select the tab to the left. Bound to `D` by default, which replaces the tabs.close.right command, which is rarely-used. [1] The old `D` behavior has been moved to `gd`. + update the README and fix some lint errors [1] https://tinyurl.com/y4mj7hjy
Diffstat (limited to 'src/background/controllers/OperationController.ts')
-rw-r--r--src/background/controllers/OperationController.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/background/controllers/OperationController.ts b/src/background/controllers/OperationController.ts
index 51cff28..9480ed5 100644
--- a/src/background/controllers/OperationController.ts
+++ b/src/background/controllers/OperationController.ts
@@ -32,7 +32,7 @@ export default class OperationController {
doOperation(operation: operations.Operation): Promise<any> {
switch (operation.type) {
case operations.TAB_CLOSE:
- return this.tabUseCase.close(false);
+ return this.tabUseCase.close(false, operation.selectLeft);
case operations.TAB_CLOSE_RIGHT:
return this.tabUseCase.closeRight();
case operations.TAB_CLOSE_FORCE: