Skip to content

Commit

Permalink
now shows file mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiyaa committed Apr 19, 2019
1 parent 55ca6e7 commit 7504150
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7504150

Please sign in to comment.