From 183920dd376170cbc0bbdd8672e7bc195e84260c Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Wed, 2 Sep 2026 13:40:38 -0400 Subject: [PATCH] BetterCommands: Remove Very Broken Newlines --- src/equicordplugins/betterCommands/index.ts | 27 +-------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/src/equicordplugins/betterCommands/index.ts b/src/equicordplugins/betterCommands/index.ts index 1436c491c..d2ccaf1f5 100644 --- a/src/equicordplugins/betterCommands/index.ts +++ b/src/equicordplugins/betterCommands/index.ts @@ -15,12 +15,7 @@ const settings = definePluginSettings({ description: "Automatically fill command with all arguments instead of just required ones.", type: OptionType.BOOLEAN, default: true, - }, - allowNewlinesInCommands: { - description: "Allow newlines in command inputs (CTRL + Shift + Enter)", - type: OptionType.BOOLEAN, - default: true, - } + }, a }); function fetchIndex(target: object) { @@ -48,26 +43,6 @@ export default definePlugin({ }, ] }, - { - find: '"italics"),!0;', - predicate: () => settings.store.allowNewlinesInCommands, - replacement: [ - { - match: /case (\i\.\i)\.TAB:if\(null!=(\i).selection&&\i\((\i)(?=.{0,300}(\i\.\i\.insertText))/, - replace: (orig, keys, editor, event, insertText) => { - return `case ${keys}.ENTER: - if(${event}.shiftKey && ${event}.ctrlKey){ - ${event}.preventDefault(); - ${event}.stopPropagation(); - ${insertText}(${editor},'\\n'); - return true; - } - break; - ${orig}`; - } - } - ] - } ], commands: [ {