diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-12 16:28:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-12 16:28:43 +0900 |
commit | c6c885345e212bedc2723e9105488d3e5fe9f8be (patch) | |
tree | beaca04a06f6f02f9222af0e73b3768f994f6acd /src/background/actions/command.js | |
parent | b0dddc9fa7765dc252fd11fc7d0fe52820655fd5 (diff) | |
parent | a8ac7415f8b5e9e9dc36318a04b7da7775796a88 (diff) |
Merge pull request #391 from ueokande/delete-tabs
Delete tabs
Diffstat (limited to 'src/background/actions/command.js')
-rw-r--r-- | src/background/actions/command.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/background/actions/command.js b/src/background/actions/command.js index 2b77507..39e880d 100644 --- a/src/background/actions/command.js +++ b/src/background/actions/command.js @@ -68,6 +68,7 @@ const setCommand = (args) => { }; }; +// eslint-disable-next-line complexity const exec = (tab, line, settings) => { let [name, args] = parsers.parseCommandLine(line); @@ -84,6 +85,18 @@ 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!': + return tabs.closeTabsByKeywordsForce(args.join(' ')); case 'addbookmark': return addBookmarkCommand(tab, args).then((item) => { if (!item) { |