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

Preview Image through remote-edit #22

Open
janstieler opened this issue May 10, 2018 · 1 comment
Open

Preview Image through remote-edit #22

janstieler opened this issue May 10, 2018 · 1 comment

Comments

@janstieler
Copy link

Hi,
If I open a imagefile like .png from a server it will opend in cryptoasciistyle and not through the core-package image-view.
Can it be that the image-header is not right served?

It would be great if I could preview images also in Atom from the server.

Cheers

@urban-1
Copy link

urban-1 commented May 19, 2018

Hi @janstieler

I am not sure this is doable... Currently this plugin overrides the default TextEditor in order to handle open and save operations over SFTP/FTP. To handle different file types we would either need to re-write the image-view (or any other) plugin or even better create an IO layer/library to handle all file operations which would require core atom architecture changes (I imagine this similar to KDE kio layer).

That being said, we might be able to partly support other file types in "view-only" mode. remote-edit-ni does have the capability to download files from the server locally, thus we could try to detect the file type and use another extension to handle it. However, I don't see how saving or refreshing would work...

No promises, but if I get some time I will try to make a PoC and see if this is possible :)

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

No branches or pull requests

3 participants