SpartanJ / ecode

Lightweight multi-platform code editor designed for modern hardware with a focus on responsiveness and performance.
MIT License
938 stars 13 forks source link

Feature Request: Better image and audio file viewing #96

Open emeraldtip opened 1 year ago

emeraldtip commented 1 year ago

Currently when you double-click an image it just opens up as a popup above everything and audiofiles just show the raw contents of the file. My idea would be to have support for images and sound files in different tabs. Just like you open up text files u can also open up image and text files in different tabs. And if you have audio playing in a tab there's some audio-playing icon on the tab bar beside the filename

I know this is a bit out of scope of a code editor, but I feel it would be useful

SpartanJ commented 1 year ago

I like the idea. It can be useful for several reasons. Let me think about how to implement it, since I also like having a simple preview as we have now, since it's faster to open and close the file without breaking the coding flow. I'll probably add an option to attach the preview as a tab or something like that. For audio files it's totally possible to do the same, I just never need to preview audio files while I'm coding.

Curculigo commented 2 months ago

I just don't see the need to support audio files.