Is it possible to disable preview for exe and other files which aren't considered as human-readable?
Here is a test:
1. Enable preview pane (PP for short) (Ctrl-F11)
2. Select any exe file. You will see that it is shown in the PP as a hex dump. Bad. (Even if you are able to understand and manipulate the hex dump, it is nearly impossible without appropriate text editor.)
3. Select action.dat in Data directory. It's not exe, but it is not human-readable. You will see that it is shown in the PP in its raw form. Bad.
4. Select tag.dat in Data directory. It is human-readable and it will be shown in PP. GOOD.
So, in other words, the program should check whether the file is human-readable or not, and enable/disable preview accordingly to it.
Files:
Previews in the preview pane. They are taken from another file manager, to show the expected behavior (expected to my opinion):
Disable preview for files which aren't considered as human-readable
-
John_C
- Posts: 336
- Joined: 16 May 2018 20:04
Disable preview for files which aren't considered as human-readable
To see the attached files, you need to log into the forum.
Last edited by John_C on 06 Jul 2019 10:50, edited 1 time in total.
-
highend
- Posts: 14955
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Disable preview for files which aren't considered as human-readable
Only because they aren't considered (by whom???) as human-readable doesn't automatically imply that they shouldn't
be displayed.
Why? Maybe you're a programmer. Maybe you want to see (by looking at the magic number) if the .exe is
a dos or win application.
.dat files can be binary or text. That depends on the application that created them.
Etc., pp.
If you don't want something to be previewed why do you click on it _while the preview pane is open_?
It's a simple shortcut to hide it if it's "necessary"...
be displayed.
Why? Maybe you're a programmer. Maybe you want to see (by looking at the magic number) if the .exe is
a dos or win application.
.dat files can be binary or text. That depends on the application that created them.
Etc., pp.
If you don't want something to be previewed why do you click on it _while the preview pane is open_?
It's a simple shortcut to hide it if it's "necessary"...
One of my scripts helped you out? Please donate via Paypal
-
John_C
- Posts: 336
- Joined: 16 May 2018 20:04
Re: Disable preview for files which aren't considered as human-readable
@highend I don't mean completely disabling, restricting. I talk about an *option* to limit it - to better satisfy the expectations of the ~95-99%% users who don't work with hex dumps and don't need to preview the files which looks like action.dat. Just a check box or something similar.
-
admin
- Site Admin
- Posts: 66366
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Disable preview for files which aren't considered as human-readable
Makes sense to me. I'll add a tweak.
FAQ | XY News RSS | XY X
XYplorer Beta Club