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

Feature idea: preview #1

Open
feth opened this issue Nov 29, 2017 · 3 comments
Open

Feature idea: preview #1

feth opened this issue Nov 29, 2017 · 3 comments

Comments

@feth
Copy link

feth commented Nov 29, 2017

Just a thought, do what you want, including deleting the present issue :)

Depending on the file type, a preview could be generated.
Simplest preview: a screenshot of the app.
More complex, depending on filetype: thumbnail the bitmap/html if it is relevant and highlight differences with previous save. If it's text, preview can be a diff.

@nojhan
Copy link
Owner

nojhan commented Dec 3, 2017

Yes, I was planning to do that.
Commit e0dfdbc adds a generic command operator that may be used for that.

But to have a portable and simple way, I don't see another way to do previews than having predefined software managers.
If we have a portable way to check for MIME=>apps (do we?), we need to pre-program the preview code, that depends on each targeted software.

@nojhan
Copy link
Owner

nojhan commented Dec 3, 2017

Python does not have a portable way to find the application associated with a MIME type, it has been discussed and tried, but seems to be abandoned now: https://bugs.python.org/issue3177

@nojhan
Copy link
Owner

nojhan commented Dec 9, 2017

I just made an example of a preview generation for inkscape, see fac6c7e

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