From ddad0e1ea466d0ed1f1a1bf3edb342fc36719679 Mon Sep 17 00:00:00 2001 From: Sami Altamimi Date: Sat, 11 Jun 2022 18:03:09 -0500 Subject: [PATCH] feat: actually add vscode I understand it is a meme command intended to be a joke, but vscode has a protocol handler which means we can actually open it from the browser. --- src/utils/bin/commands.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/bin/commands.ts b/src/utils/bin/commands.ts index 3fdd8cf..2ef8914 100644 --- a/src/utils/bin/commands.ts +++ b/src/utils/bin/commands.ts @@ -138,6 +138,11 @@ export const emacs = async (args?: string[]): Promise => { return `you know what? just use vscode.`; }; +export const vscode = async (args?: string[]): Promise => { + window.open(`vscode://`); + return `opening god's favorite editor...`; +}; + export const sudo = async (args?: string[]): Promise => { window.open('https://www.youtube.com/watch?v=dQw4w9WgXcQ', '_blank'); // ...I'm sorry return `Permission denied: with little power comes... no responsibility? `;