kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.37k stars 148 forks source link

mime-type is stuck for the defined case #397

Closed DearRude closed 4 months ago

DearRude commented 11 months ago

When, the following extention is assigned: jpg."inherit" = "image_default"; The expected functionality is all files with different cases such as .JPG or .Jpg be assigned to image_default too.

However only defined case is assgined to the respective mime.

kamiyaa commented 11 months ago

Yes, joshuto is case sensitive.

A solution to this is to just have a mimetype option set instead of an extension option:

[mimetype]

[mimetype.image]
inherit = "image_default"