nylas / nylas-mail

:love_letter: An extensible desktop mail app built on the modern web. Forks welcome!
https://nylas.com/nylas-mail/
MIT License
24.8k stars 1.39k forks source link

Distraction-free reading mode? #2246

Open orschiro opened 8 years ago

orschiro commented 8 years ago

Dear all,

Some emails come with a bunch of hard to read design and formatting.

I wish to remove all of this and focus on the pure content.

What do you think of a distraction-free reading mode?

Could be a button I can click or an option I can set in the preferences.

Thankfully,

~Robert

:smiley:

kevinmartin commented 8 years ago

Would be a nice plugin or theme.

orschiro commented 8 years ago

Maybe even something for Nylas N1 core. :smile:

kevinmartin commented 8 years ago

Maybe, but the more things added to Core that isn't being used by everyone, the more bloated and error prone the software can get.

I would rather a slim application with a good package list than a bloated piece of software with features of which I only use 10% of.

Edit: My opinion, of course.

orschiro commented 8 years ago

I guess you're right.

I am actually one of those users who went straight to the Preferences and deactivated all plugins I don't need. :+1:

bengotow commented 8 years ago

This would actually make a pretty good starter plugin. You can implement a MessageViewExtension in a plugin to format the message body before it's displayed. A really heavy-handed way to do this would be to set the message body as the innerHTML of a DOM node, and then read it back as innerText and wrap it in a <pre> tag.

https://github.com/nylas/N1/blob/master/internal_packages/message-autoload-images/lib/autoload-images-extension.es6#L5

sahildua2305 commented 8 years ago

@bengotow can you please point me to some guide for making plugin? Or some existing (simple) plugin for example?