Skip to content

Commit

Permalink
Several file extension, file name, and folder name icon associations (#…
Browse files Browse the repository at this point in the history
…1447)

* misc filename additions to file & folder icons

* revert 'musics' folder name (not a word) + screengrab

* more archive formats & rst filenames

* revert 'changes' name duplicate

* fix formatting errors from prettier
  • Loading branch information
maallaard committed Mar 28, 2022
1 parent 7e43a7f commit 7e95479
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 19 deletions.
63 changes: 50 additions & 13 deletions src/icons/fileIcons.ts
Expand Up @@ -22,7 +22,14 @@ export const fileIcons: FileIcons = {
{ name: 'less', fileExtensions: ['less'] },
{
name: 'json',
fileExtensions: ['json', 'tsbuildinfo', 'json5', 'jsonl', 'ndjson'],
fileExtensions: [
'json',
'jsonc',
'tsbuildinfo',
'json5',
'jsonl',
'ndjson',
],
fileNames: [
'.jscsrc',
'.jshintrc',
Expand All @@ -38,10 +45,7 @@ export const fileIcons: FileIcons = {
fileExtensions: ['jinja', 'jinja2', 'j2', 'jinja-html'],
light: true,
},
{
name: 'proto',
fileExtensions: ['proto'],
},
{ name: 'proto', fileExtensions: ['proto'] },
{
name: 'playwright',
fileNames: ['playwright.config.js', 'playwright.config.ts'],
Expand Down Expand Up @@ -243,7 +247,10 @@ export const fileIcons: FileIcons = {
fileNames: ['astro.config.js', 'astro.config.mjs', 'astro.config.cjs'],
},
{ name: 'pdf', fileExtensions: ['pdf'] },
{ name: 'table', fileExtensions: ['xlsx', 'xls', 'csv', 'tsv', 'psv'] },
{
name: 'table',
fileExtensions: ['xlsx', 'xls', 'csv', 'tsv', 'psv', 'ods'],
},
{
name: 'vscode',
fileExtensions: [
Expand Down Expand Up @@ -296,12 +303,17 @@ export const fileIcons: FileIcons = {
'tar',
'gz',
'xz',
'lzma',
'lz4',
'br',
'bz2',
'bzip2',
'gzip',
'brotli',
'7z',
'rar',
'tz',
'txz',
'tgz',
],
},
Expand Down Expand Up @@ -364,22 +376,26 @@ export const fileIcons: FileIcons = {
fileExtensions: ['gradle'],
fileNames: ['gradle.properties', 'gradlew', 'gradle-wrapper.properties'],
},
{ name: 'word', fileExtensions: ['doc', 'docx', 'rtf'] },
{ name: 'word', fileExtensions: ['doc', 'docx', 'rtf', 'odt'] },
{
name: 'certificate',
fileExtensions: ['cer', 'cert', 'crt'],
fileNames: [
'copying',
'copying.md',
'copying.rst',
'copying.txt',
'copyright',
'copyright.txt',
'copyright.md',
'copyright.rst',
'copyright.txt',
'license',
'license.md',
'license.rst',
'license.txt',
'licence',
'licence.md',
'licence.rst',
'licence.txt',
],
},
Expand Down Expand Up @@ -488,6 +504,7 @@ export const fileIcons: FileIcons = {
'pps',
'ppam',
'ppa',
'odp',
],
},
{
Expand Down Expand Up @@ -545,7 +562,7 @@ export const fileIcons: FileIcons = {
'graphql.config.yml',
],
},
{ name: 'rust', fileExtensions: ['rs'] },
{ name: 'rust', fileExtensions: ['rs', 'ron'] },
{ name: 'raml', fileExtensions: ['raml'] },
{ name: 'xaml', fileExtensions: ['xaml'] },
{ name: 'haskell', fileExtensions: ['hs'] },
Expand All @@ -555,6 +572,7 @@ export const fileIcons: FileIcons = {
fileExtensions: ['patch'],
fileNames: [
'.gitignore',
'.gitignore-global',
'.gitignore_global',
'.gitconfig',
'.gitattributes',
Expand Down Expand Up @@ -1000,27 +1018,46 @@ export const fileIcons: FileIcons = {
},
{
name: 'contributing',
fileNames: ['contributing.md'],
fileNames: [
'contributing.md',
'contributing.rst',
'contributing.txt',
'contributing',
],
},
{
name: 'readme',
fileNames: ['readme.md', 'readme.rst', 'readme.txt', 'readme'],
},
{ name: 'readme', fileNames: ['readme.md', 'readme.txt', 'readme'] },
{
name: 'changelog',
fileNames: [
'changelog',
'changelog.md',
'changelog.rst',
'changelog.txt',
'changes',
'changes.md',
'changes.rst',
'changes.txt',
],
},
{
name: 'credits',
fileNames: ['credits', 'credits.txt', 'credits.md'],
fileNames: ['credits.md', 'credits.rst', 'credits.txt', 'credits'],
},
{
name: 'authors',
fileNames: ['authors', 'authors.md', 'authors.txt'],
fileNames: [
'authors.md',
'authors.rst',
'authors.txt',
'authors',
'contributors.md',
'contributors.rst',
'contributors.txt',
'contributors',
],
},
{ name: 'flow', fileNames: ['.flowconfig'] },
{ name: 'favicon', fileNames: ['favicon.ico'] },
Expand Down
47 changes: 41 additions & 6 deletions src/icons/folderIcons.ts
Expand Up @@ -9,7 +9,10 @@ export const folderIcons: FolderTheme[] = [
defaultIcon: { name: 'folder' },
rootFolder: { name: 'folder-root' },
icons: [
{ name: 'folder-src', folderNames: ['src', 'source', 'sources', 'code'] },
{
name: 'folder-src',
folderNames: ['src', 'srcs', 'source', 'sources', 'code'],
},
{
name: 'folder-dist',
folderNames: ['dist', 'out', 'build', 'release', 'bin'],
Expand All @@ -24,12 +27,18 @@ export const folderIcons: FolderTheme[] = [
folderNames: [
'images',
'image',
'imgs',
'img',
'icons',
'icon',
'icos',
'ico',
'screenshot',
'screenshots',
'screengrab',
'screengrabs',
'pic',
'pics',
'picture',
'pictures',
],
Expand All @@ -40,7 +49,7 @@ export const folderIcons: FolderTheme[] = [
name: 'folder-javascript',
folderNames: ['js', 'javascript', 'javascripts'],
},
{ name: 'folder-json', folderNames: ['json'] },
{ name: 'folder-json', folderNames: ['json', 'jsons'] },
{ name: 'folder-font', folderNames: ['font', 'fonts'] },
{ name: 'folder-bower', folderNames: ['bower_components'] },
{
Expand Down Expand Up @@ -112,6 +121,10 @@ export const folderIcons: FolderTheme[] = [
{
name: 'folder-config',
folderNames: [
'cfg',
'cfgs',
'conf',
'confs',
'config',
'configs',
'configuration',
Expand All @@ -129,6 +142,7 @@ export const folderIcons: FolderTheme[] = [
'i18n',
'internationalization',
'lang',
'langs',
'language',
'languages',
'locale',
Expand Down Expand Up @@ -284,11 +298,19 @@ export const folderIcons: FolderTheme[] = [
{ name: 'folder-aws', folderNames: ['aws', '.aws'] },
{
name: 'folder-audio',
folderNames: ['audio', 'audios', 'music', 'musics', 'sound', 'sounds'],
folderNames: [
'aud',
'auds',
'audio',
'audios',
'music',
'sound',
'sounds',
],
},
{
name: 'folder-video',
folderNames: ['video', 'videos', 'movie', 'movies'],
folderNames: ['vid', 'vids', 'video', 'videos', 'movie', 'movies'],
},
{ name: 'folder-kubernetes', folderNames: ['kubernetes', 'k8s'] },
{ name: 'folder-import', folderNames: ['import', 'imports', 'imported'] },
Expand Down Expand Up @@ -431,9 +453,15 @@ export const folderIcons: FolderTheme[] = [
{
name: 'folder-archive',
folderNames: [
'arc',
'arcs',
'archive',
'archives',
'archival',
'bkp',
'bkps',
'bak',
'baks',
'backup',
'backups',
'back-up',
Expand Down Expand Up @@ -483,13 +511,17 @@ export const folderIcons: FolderTheme[] = [
{
name: 'folder-functions',
folderNames: [
'func',
'funcs',
'function',
'functions',
'lambda',
'lambdas',
'logic',
'math',
'maths',
'calc',
'calcs',
'calculation',
'calculations',
],
Expand Down Expand Up @@ -519,7 +551,10 @@ export const folderIcons: FolderTheme[] = [
},
{ name: 'folder-mappings', folderNames: ['mappings', 'mapping'] },
{ name: 'folder-meta', folderNames: ['meta'] },
{ name: 'folder-packages', folderNames: ['package', 'packages', 'pkg'] },
{
name: 'folder-packages',
folderNames: ['package', 'packages', 'pkg', 'pkgs'],
},
{ name: 'folder-shared', folderNames: ['shared', 'common'] },
{ name: 'folder-stack', folderNames: ['stack', 'stacks'] },
{ name: 'folder-template', folderNames: ['template', 'templates'] },
Expand Down Expand Up @@ -582,7 +617,7 @@ export const folderIcons: FolderTheme[] = [
},
{
name: 'folder-animation',
folderNames: ['animation', 'animations', 'animated'],
folderNames: ['anim', 'anims', 'animation', 'animations', 'animated'],
},
{ name: 'folder-guard', folderNames: ['guard', 'guards'] },
{ name: 'folder-prisma', folderNames: ['prisma'] },
Expand Down

0 comments on commit 7e95479

Please sign in to comment.