Closed mrusme closed 2 years ago
@mrusme when you say breaks the UI what do you mean? I tried previewing all of those file types and you should be seeing a message in the secondary pane just saying "cant preview file". Are you seeing something different? If so, can you post a screenshot
Yupp, I'm seeing gibberish all over the place and the UI breaks until I preview a file that is eg an image. I can post a screenshot later.
I tried previewing the FCStd file, then this happend, then I moved the selection up and at least the list reappeared.
Im not familiar with FCStd files, what is contained in them?
It doesn't necessarily matter. The FCStd files contain FreeCAD models, however, fm should fallback to displaying generic file info (similar to how nnn does it) when it does not know what to do with the file. This however seems like it's trying to open the file, no matter what.
@mrusme just pushed up 0.13.5 which should prevent this from breaking. For the file info, the file info is displayed in the status bar
~ go install github.com/knipferrc/fm@latest
~
... when that push notification from github is quicker than goreleaser, I guess.
Sorry, took some time. This is still happening with webp.
Oops, ok will take a look
Draft PR #95 is open and addresses this
Fixed in 0.14.0
Trying to preview either of the listed formats breaks the UI. It would be nice if fm could at least display some meta info if it's not able to give an actual preview, like the IDv3 info for mp3s or simply just file sizes and the full name of the file (as it can be too long for the list) for others.