Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Don't display 'Error Opening File' modal when user clicks on binary file #7608

Closed
timcroydon opened this issue Apr 23, 2014 · 3 comments
Closed

Comments

@timcroydon
Copy link

At present (release 38), when user clicks on a binary file a modal dialog pops up saying 'Error Opening File'.

Use case

I quite often find myself clicking through a list of files to view the contents quickly, particularly if browsing someone else's code. If I encounter a binary file, I have to digest and acknowledge the error dialog before I can open another file. I find this annoying as it's not really an error as such.

Proposed alternative

I think a better approach would be just to show a simple readonly message in the file editor area, similar to the 'Code The Web' logo display that opens on loading the application, e.g. 'Cannot display file' or 'File type not supported'

@peterflynn
Copy link
Member

We're doing work this sprint to make the Windows behavior more consistent with Mac, but that won't address this -- it'll just mean we consistently show the error dialog on both platforms. Marking 'move to backlog' for us to consider the enhancement of showing UI that's nicer than an error dialog.

@TomMalbran
Copy link
Contributor

I was thinking that as first approach an easy solution would be to create a Custom Viewer for the binary file that would just show the file metadata, maybe a general file icon and maybe a simple message stating that this is a binary file. Since we are extending that list a lot lately, it will cover most of the most common binary files.

@peterflynn
Copy link
Member

Closing since duplicate bug #7676 has more info in its thread

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants