CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

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

Open plbstl opened this issue 1 year ago • 1 comments

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 avatar May 01 '24 07:05 plbstl

I’m currently working on this

plbstl avatar May 08 '24 17:05 plbstl