Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat / Bug?] Let CodeSnaps be taken from unsaved buffers #128

Open
jonsch318 opened this issue Sep 15, 2024 · 1 comment
Open

[Feat / Bug?] Let CodeSnaps be taken from unsaved buffers #128

jonsch318 opened this issue Sep 15, 2024 · 1 comment

Comments

@jonsch318
Copy link

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

@jonsch318 jonsch318 changed the title [FEAT] Let CodeSnaps be taken from unsaved buffers [Feat / Bug?] Let CodeSnaps be taken from unsaved buffers Sep 15, 2024
@mistricky
Copy link
Owner

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.

  1. I create a file named hello.js
  2. Code some
  3. Take code snapshot
Screen.Recording.2024-09-22.at.12.18.11.mov

The content of hello.js is unsaved, but it works properly. Can you provide screen record if I understand incorrect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants