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

Suggestion: Copy minimized file to clipboard on success #75

Open
o-brkyr opened this issue Mar 26, 2022 · 2 comments
Open

Suggestion: Copy minimized file to clipboard on success #75

o-brkyr opened this issue Mar 26, 2022 · 2 comments
Labels
feature New feature or request

Comments

@o-brkyr
Copy link

o-brkyr commented Mar 26, 2022

It would be a nice QOL improvement to add an option in settings to automatically copy the contents of [a] minimized file to clipboard on build. Whilst there are options to automatically update vehicles, this is perhaps a bit too much when rapidly prototyping rather than making updates to something that is already concrete.
Having this as an option would significantly reduce time in this situation.

As this is only for one file, it may be worth adding a "Build File" option in the extension in addition to "Build Project". This would only compile the currently active file and it's dependencies.

@nameouschangey nameouschangey added the feature New feature or request label Mar 26, 2022
@nameouschangey
Copy link
Owner

That sounds like a really good addition, thanks for adding it!

Just note for self:
look at windows cmd "clip < output.lua"

@o-brkyr
Copy link
Author

o-brkyr commented Mar 26, 2022

That sounds like a really good addition, thanks for adding it!

Just note for self: look at windows cmd "clip < output.lua"

https://stackoverflow.com/questions/48597927/setting-a-file-path-as-text-to-clipboard-in-lua

Might be worth a look, had a look at putting something along those lines in the post build method, however I've no idea how VSCode handles extensions and couldn't immediately see an argument for the filename of the active window

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

No branches or pull requests

2 participants