[Feat / Bug?] Let CodeSnaps be taken from unsaved buffers
I am working on a presentation that involves code, thus CodeSnap is pretty much perfect (thanks :)). But i have some examples that i don't need as written code but want as a snippet in the presentation.
But when I am create a new unsaved file and taking a CodeSnap from it, the Lua Runtime says:
Value of type () couldn't be pushed on the stack: Lua runtime error: No such file .
Is it possible to read the buffer content not the written out file on disk? This would potentially help with accidentally unsaved files aswell?
Thanks
Hi @jonsch318 thx for this issue reporting, looks like this is bug, I'm try to reproduce this case on my computer, but everything works properly.
- I create a file named
hello.js - Code some
- Take code snapshot
https://github.com/user-attachments/assets/6afecad3-b8ea-4948-9ebd-afe8f515c6a7
The content of hello.js is unsaved, but it works properly. Can you provide screen record if I understand incorrect