-
Notifications
You must be signed in to change notification settings - Fork 59
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
put result in clipboard #58
Comments
Also, if freeze could simply output to stdout, on MacOS we could simply do |
Came here looking for clipboard output as well. But actually outputting to Folks can then pipe it into the clipboard app of their platform of choice ( |
The problem I think at least in MacOS, from what I am working on freeze-code.nvim, is that
on run args
set the clipboard to (read (POSIX file (first item of args)) as JPEG picture)
end
-- or just png
on run args
set the clipboard to (read (POSIX file (first item of args)) as {«class PNGf»})
end
-- without args
set the clipboard to (read (POSIX file "<full-path-to-image>/image.png") as JPEG picture)
-- or just png
set the clipboard to (read (POSIX file "<full-path-to-image>/image.png") as {«class PNGf»})
Add-Type -AssemblyName System.Windows.Forms; [Windows.Forms.Clipboard]::SetImage($[System.Drawing.Image]::FromFile("$args[0]")))
# without args
Add-Type -AssemblyName System.Windows.Forms; [Windows.Forms.Clipboard]::SetImage($[System.Drawing.Image]::FromFile("<full-path-to-image>/image.png"))) If you want to do it In |
@maxandersen @ndom91 @Moulick @bashbunni I made a PR (#97) using the previously mentioned cross-platform clipboard package if anyone want to test it out to see if solves this issue. |
@AlejandroSuero sweet! This solves the clipboard problem.
nvm, it can write to
|
@maxandersen @ndom91 @Moulick I added |
awesome! looking forward for this to be in! |
Is your feature request related to a problem? Please describe.
I like to take snippet of code and paste image into chat or twitter directly,.
Describe the solution you'd like
freeze --clipboard mycode.java
or similar to then just be able to paste result without intermediate filesThe text was updated successfully, but these errors were encountered: