File types color based on type

This commit is contained in:
Simon
2018-06-19 22:34:44 -04:00
parent 5afdfb2b3c
commit 5f07e7d340
3 changed files with 132 additions and 39 deletions

View File

@@ -50,6 +50,7 @@ category_map = {
'h': 'text', 'tsv': 'text', 'rtx': 'text',
'sgm': 'text', 'sgml': 'text', 'txt': 'text',
'vcf': 'text', 'pdf': 'text', 'epub': 'text',
'srt': 'text',
# Video category
'3g2': 'video', '3gp': 'video', 'asf': 'video',
'asx': 'video', 'avi': 'video', 'flv': 'video',
@@ -64,7 +65,7 @@ category_map = {
'aif': 'audio', 'iff': 'audio', 'm4a': 'audio',
'mid': 'audio', 'midi': 'audio', 'mp3': 'audio',
'wma': 'audio', 'ra': 'audio', 'aifc': 'audio',
'aiff': 'audio', 'au': 'audio',
'aiff': 'audio', 'au': 'audio', 'flac': 'audio',
# Image category
'bmp': 'image', 'gif': 'image', 'jpg': 'image',
'xwd': 'image', 'tif': 'image', 'tiff': 'image',