CodeEditApp / CodeEdit

CodeEdit App for macOS ā€“ Elevate your code editing experience. Open source, free forever.
https://codeedit.app
MIT License
20.98k stars 1.01k forks source link

šŸž CodeEdit opens most files as blank text files even when a workspace is active #1698

Closed plbstl closed 4 months ago

plbstl commented 4 months ago

Description

Related to #1026

Basically files other than supported images are opened as blank text files.

Tested formats

Images (the ones Preview can open, works as normal): .cur, .djvu, .jpg, .jpeg, .png, .heic, .gif, .bmp, .ico

Audio: .mp2, .mp3, .flac, .aac, .m4a, .wav

Videos: .hevc, .3gp, .opus, .wmv, .vob, .mpeg, .mkv, .m4v, .webm, .avi, .mov

Archives: .7z, .rar, .zip

Documents: .pdf, .bin, .ppt, .doc, .ods, .azw3, .mobi, .dfont, .woff

.csv works as a text file

To Reproduce

Attempt to open any of the above files in CodeEdit

Expected Behavior

To either preview the file, show an informative message or a placeholder file icon.

Version Information

CodeEdit: 0.1.0-alpha macOS: 14.4.1 Xcode: 15.3

Additional Context

Xcode shows a thumbnail image (same one that shows up in Finder) when it is unable to preview a file.

xcode file tree view 2

Although, the file icons in the Project Navigator tries to be as close to the file type as possible.

xcode file tree view

Screenshots

codeedit file tree view
plbstl commented 4 months ago

Iā€™m currently working on this