diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-19 19:07:40 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-19 19:07:40 -0400 |
commit | 7504150e476d55d71dc97b697d6e3a7ddd920981 (patch) | |
tree | a2d92ad2255cf08f770874858a575f77ef54a7c2 | |
parent | 55ca6e73b25b976ba157895cbc486ab9e067a76c (diff) |
now shows file mimetype
-rw-r--r-- | src/ui.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -205,6 +205,10 @@ pub fn wprint_file_info(win: ncurses::WINDOW, file: &structs::JoshutoDirEntry) { let file_size_string = file_size_to_string_detailed(file.metadata.len as f64); ncurses::waddstr(win, &file_size_string); } + + ncurses::waddstr(win, " "); + let mimetype_str = tree_magic::from_filepath(&file.path); + ncurses::waddstr(win, &mimetype_str); } pub fn redraw_tab_view(win: &window::JoshutoPanel, context: &JoshutoContext) { |