Metadata box could show output of "file" command
The part you want to Enhancement
The "Metadata" box. It could show the output of file (would probably need to find some cross-platform implementation or an abstraction layer that does effectively the same thing on Windows).
Why it is necessary to enhancement This would be nice for knowing what kind of file we're looking at.
Additional context This is something I have really been wanting in any file manager!
nice idea. i second the motion
I'm actually thinking if this function should be displayed using a shortcut key or set in config.toml
i think it should be set in config.toml that would be nice. i don't think there is a need for it be switched by a key press. one would either prefer it or not
There is a better alternative implementation described in https://github.com/yorukot/superfile/issues/306. I think this issue should be closed.
nice
I agree. Currently exiftool is used for extra metadata (that too only when you enable the plugin). But it gives too much info and rendering is not concise.
Info from file could be used without the plugin enablement, and the when plugin is enabled the metadata panel's output should be ordered correctly to show more relevant info first.
➜ ~/temp/testf/tough [1:50:09] exiftool 1.txt
ExifTool Version Number : 13.14
File Name : 1.txt
Directory : .
File Size : 4 bytes
File Modification Date/Time : 2025:01:23 12:45:56+05:30
File Access Date/Time : 2025:01:23 12:45:57+05:30
File Inode Change Date/Time : 2025:01:23 12:45:56+05:30
File Permissions : -rw-r--r--
File Type : TXT
File Type Extension : txt
MIME Type : text/plain
MIME Encoding : us-ascii
Newlines : Unix LF
Line Count : 2
Word Count : 2
➜ ~/temp/testf/tough [1:50:26] file 1.tt
1.tt: cannot open `1.tt' (No such file or directory)
➜ ~/temp/testf/tough [1:50:28] file 1.txt
1.txt: ASCII text
➜ ~/temp/testf/tough [1:50:30] file 5.txt
5.txt: data
➜ ~/temp/testf/tough [1:50:39] exiftool 5.txt
ExifTool Version Number : 13.14
File Name : 5.txt
Directory : .
File Size : 3.6 kB
File Modification Date/Time : 2025:01:23 17:28:15+05:30
File Access Date/Time : 2025:01:23 17:28:16+05:30
File Inode Change Date/Time : 2025:01:23 17:28:15+05:30
File Permissions : -rw-r--r--
Error : File format error
➜ ~/temp/testf/tough [1:50:45] file binary/go
binary/go: Mach-O 64-bit executable arm64
➜ ~/temp/testf/tough [1:51:06] exiftool binary/go
ExifTool Version Number : 13.14
File Name : go
Directory : binary
File Size : 16 MB
File Modification Date/Time : 2025:01:24 02:33:47+05:30
File Access Date/Time : 2025:01:24 02:33:47+05:30
File Inode Change Date/Time : 2025:01:24 02:33:47+05:30
File Permissions : -rwxr-xr-x
File Type : Mach-O executable
File Type Extension :
MIME Type : application/octet-stream
CPU Architecture : 64 bit
CPU Byte Order : Little endian
CPU Type : ARM 64-bit
CPU Subtype : ARM (all) 64-bit
Object File Type : Demand paged executable
Object Flags : Dyld link, Random address
➜ ~/temp/testf/tough [1:51:14]