excalidraw-vscode icon indicating copy to clipboard operation
excalidraw-vscode copied to clipboard

New command: Create a new untitled Excalidraw file

Open pomdtr opened this issue 2 years ago • 9 comments

We should also integrate with the Create: New File... command.

pomdtr avatar Apr 05 '22 19:04 pomdtr

Hi @pomdtr , VS Code dev here. I can help with this if you haven't started yet.

rebornix avatar Apr 07 '22 18:04 rebornix

Hi @rebornix ! Thanks for proposing your help, go ahead :)

pomdtr avatar Apr 07 '22 22:04 pomdtr

I did take a stab at it some time ago, but I did encouter a bug when saving the untitled document : the untitled editor was not closing after saving it to a document, leading to two document opened :/

pomdtr avatar Jul 21 '22 10:07 pomdtr

Waiting for this eagerly. You should also specify a setting to set the "default path" where it should store the newly created files.

aadimator avatar Jul 30 '22 07:07 aadimator

Emphasis on unsaved/untitled. My ideal workflow is embedding drawings into markdown, so I've no need for saving to its own file

Acumane avatar Dec 07 '22 07:12 Acumane

Hi, I am not sure if it is related to this issue, but I am not able to create a *.excalidraw.svg, *.excalidraw.png, *.excalidraw file using the below command in terminal:

code <file-you-want-to-create>.excalidraw

Please let me know if it is possible.

A workaround for this is to open code in the same directory using code . and then creating a new file inside vscode with the .excalidraw extension.

rajguru7 avatar Apr 17 '23 17:04 rajguru7

Yeah there is something wrong in the way the extension handle files. I really want to fix it, but I don't have a lot of time to dedicate to the issue right now.

Any help would be appreciated! #85 is probably related to this.

pomdtr avatar Apr 17 '23 18:04 pomdtr

Came here to log a feature request for exactly this.

It's a bit of a pain having to create a new file with a specific extension, open it with vscode etc... and it means there's no hotkey assignable shortcut that can be used with automations/layouts etc....

sammcj avatar Aug 16 '23 23:08 sammcj

anyone have any update on this request? currently, I have to make a copy an existing .excalidraw file and then I can open it from Excalidraw. I wish I could actually help but I am no programmer.

the-yojimbo avatar Mar 19 '24 13:03 the-yojimbo