aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-03-25 07:01:59 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-03-25 07:01:59 +0900
commitf7479c36ad0883455e511a86adf86e147ff4460a (patch)
treeb70a44eda90615582a6f9f411db0eb736cdf3fe4 /src
parent6be2dabff6c35fb79d85ba39b692c5d06cd53125 (diff)
Remove ! from commands
Diffstat (limited to 'src')
-rw-r--r--src/console/commandline/CommandParser.ts8
-rw-r--r--src/shared/Command.ts2
2 files changed, 2 insertions, 8 deletions
diff --git a/src/console/commandline/CommandParser.ts b/src/console/commandline/CommandParser.ts
index 5228c77..79ae8c8 100644
--- a/src/console/commandline/CommandParser.ts
+++ b/src/console/commandline/CommandParser.ts
@@ -8,6 +8,8 @@ export class UnknownCommandError extends Error {
export default class CommandParser {
parse(value: string): Command {
+ value = value.replace(/!$/, "");
+
switch (value) {
case 'o':
case 'open':
@@ -25,14 +27,8 @@ export default class CommandParser {
case 'bdel':
case 'bdelete':
return Command.BufferDelete;
- case 'bd!':
- case 'bdel!':
- case 'bdelete!':
- return Command.BufferDeleteForce;
case 'bdeletes':
return Command.BuffersDelete;
- case 'bdeletes!':
- return Command.BuffersDeleteForce;
case 'addbookmark':
return Command.AddBookmark;
case 'q':
diff --git a/src/shared/Command.ts b/src/shared/Command.ts
index e492f4a..cd2ed0a 100644
--- a/src/shared/Command.ts
+++ b/src/shared/Command.ts
@@ -4,9 +4,7 @@ export enum Command {
WindowOpen = "winopen",
Buffer = "buffer",
BufferDelete = "bdelete",
- BufferDeleteForce = "bdelete!",
BuffersDelete = "bdeletes",
- BuffersDeleteForce = "bdeletes!",
AddBookmark = "addbookmark",
Quit = "quit",
QuitAll = "quitall",