CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

🐞 CodeEdit does not open the following file formats

Open iggy890 opened this issue 2 years ago • 5 comments

Description

As of now (0.0.3-alpha.30) CodeEdit cannot open the following file formats:

NOTE: Some of these file formats open when a workspace is active, this bug is related to pressing "Open with" and the file not opening.

Image formats

.png .jpeg .heic .gif .tga .bmp .psd .hdr .pic .webp .pdf .tiff .avif .ppm .pgm .pbm .pnm .ico: does not open / blank screen

Video formats

.mov .mp4 .avi .mkv: does not open / blank screen

Audio formats

.mp3 .wav: does not open / blank screen

3D model formats

.obj .dae .abc: only shows raw data (text) .glb .ply: does not open / blank screen

Project files

.xcodeproj: crashes upon opening

I'll add more file formats soon

To Reproduce

Right click on one of the file formats provided. Press "Open With" and select CodeEdit.

Tasks

  • [ ] Warning upon opening file
  • [ ] Open all file formats listed using UTF-8 encoding

Expected behavior

I would expect an error message saying: "CodeEdit does not support .format currently" or the file to open normally.

Version information

CodeEdit: [0.0.3-alpha.30] macOS: [13.2]

iggy890 avatar Jan 28 '23 17:01 iggy890

There was work done in PR #674 around this. If you cannot see these files, that might mean this is broken. These files should be using QuickLook (see documentation).

austincondiff avatar Feb 16 '23 21:02 austincondiff

@austincondiff I can confirm that this is a bug. [CodeEdit 0.0.2-alpha.27]

iggy890 avatar Feb 17 '23 17:02 iggy890

I am able to open a png.

image

austincondiff avatar Feb 23 '23 17:02 austincondiff

Yes, but this is not the case when pressing "Open with".

iggy890 avatar Feb 23 '23 18:02 iggy890

I wonder if we should allow users to open any type of file in the open dialog.

austincondiff avatar Aug 02 '23 17:08 austincondiff