diff --git a/src/shortcuts.ts b/src/shortcuts.ts index 48d0bf6..7eaab52 100644 --- a/src/shortcuts.ts +++ b/src/shortcuts.ts @@ -30,12 +30,14 @@ function shellCommand(language: Language, { bin, printWidth, sqlDialect }: Comma if (printWidth !== undefined) parts.push(`--print-width=${printWidth}`); if (sqlDialect && language.startsWith("sql")) parts.push(`--sql-dialect=${sqlDialect}`); + // Shortcuts turns a script result that looks like JSON into a dictionary and loses the format. + parts.push("|", "pbcopy"); + return parts.join(" "); } function shortcutPlist(name: string, command: string): string { const scriptUUID = randomUUID().toUpperCase(); - const clipboardUUID = randomUUID().toUpperCase(); return ` @@ -79,29 +81,6 @@ function shortcutPlist(name: string, command: string): string { ${scriptUUID} - - WFWorkflowActionIdentifier - is.workflow.actions.setclipboard - WFWorkflowActionParameters - - UUID - ${clipboardUUID} - WFInput - - Value - - OutputName - Shell Script Result - OutputUUID - ${scriptUUID} - Type - ActionOutput - - WFSerializationType - WFTextTokenAttachment - - -