Hi, I have successfully made a plugin that pastes the selected code in a file to a pastebin, and sets the link in the clipboard.
But now I want it to paste the entire file if nothing is selected.
I know I can do it if I open the file, and read the contents, but I want the contents even if the file hasn’t been saved yet.
Is this possible? I didn’t see it mentioned in the API.
Thanks in advance