aboutsummaryrefslogtreecommitdiff
path: root/src/background/actions/command.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-10 22:16:38 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-12 09:10:18 +0900
commitb91e53e5feff66c1744faa930f4a79f493f91875 (patch)
tree4de6bc830b5a5fbaff65bbd4c1804e36b413ab03 /src/background/actions/command.js
parent9b3d12eb31483898dd3ae527a31dd6602f79e718 (diff)
Add bdlete/bdelete! commands
Diffstat (limited to 'src/background/actions/command.js')
-rw-r--r--src/background/actions/command.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/background/actions/command.js b/src/background/actions/command.js
index fa040ff..888b46f 100644
--- a/src/background/actions/command.js
+++ b/src/background/actions/command.js
@@ -84,6 +84,14 @@ const exec = (tab, line, settings) => {
case 'b':
case 'buffer':
return bufferCommand(args);
+ case 'bd':
+ case 'bdel':
+ case 'bdelete':
+ return tabs.closeTabByKeywords(args.join(' '));
+ case 'bd!':
+ case 'bdel!':
+ case 'bdelete!':
+ return tabs.closeTabByKeywordsForce(args.join(' '));
case 'bdeletes':
return tabs.closeTabsByKeywords(args.join(' '));
case 'bdeletes!':