Skip to content

Commit c8e8246

Browse files
marlondecolPKieflucas-labs
authored
feat: add icons for *.bib files and BibTeX language IDs (#2986)
Signed-off-by: Philipp Kief <philipp.kief@gmx.de> Signed-off-by: Lucas Colombo <lucasncolombo@gmail.com> Co-authored-by: Philipp Kief <philipp.kief@gmx.de> Co-authored-by: Lucas Colombo <lucasncolombo@gmail.com>
1 parent e5f50aa commit c8e8246

File tree

10 files changed

+19
-2
lines changed

10 files changed

+19
-2
lines changed

icons/bbx.svg

Lines changed: 1 addition & 0 deletions
Loading

icons/bibliography.svg

Lines changed: 1 addition & 0 deletions
Loading

icons/bibtex-style.svg

Lines changed: 1 addition & 0 deletions
Loading

icons/cbx.svg

Lines changed: 1 addition & 0 deletions
Loading

icons/folder-bibliography-open.svg

Lines changed: 1 addition & 0 deletions
Loading

icons/folder-bibliography.svg

Lines changed: 1 addition & 0 deletions
Loading

icons/lbx.svg

Lines changed: 1 addition & 0 deletions
Loading

src/core/icons/fileIcons.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,9 @@ export const fileIcons: FileIcons = {
630630
'mrf',
631631
],
632632
},
633-
{ name: 'lib', fileExtensions: ['lib', 'bib', 'a'] },
633+
{ name: 'lib', fileExtensions: ['lib', 'a'] },
634+
{ name: 'bibliography', fileExtensions: ['bib'] },
635+
{ name: 'bibtex-style', fileExtensions: ['bst'] },
634636
{ name: 'dll', fileExtensions: ['dll', 'ilk', 'so'] },
635637
{
636638
name: 'ruby',
@@ -762,6 +764,9 @@ export const fileIcons: FileIcons = {
762764
'compose.worker.yml',
763765
],
764766
},
767+
{ name: 'bbx', fileExtensions: ['bbx'] },
768+
{ name: 'cbx', fileExtensions: ['cbx'] },
769+
{ name: 'lbx', fileExtensions: ['lbx'] },
765770
{ name: 'tex', fileExtensions: ['tex'] },
766771
{
767772
name: 'sty',

src/core/icons/folderIcons.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,10 @@ export const folderIcons: FolderTheme[] = [
11671167
{ name: 'folder-kusto', folderNames: ['kusto', 'kql'] },
11681168
{ name: 'folder-policy', folderNames: ['policy', 'policies'] },
11691169
{ name: 'folder-attachment', folderNames: ['attachment', 'attachments'] },
1170+
{
1171+
name: 'folder-bibliography',
1172+
folderNames: ['bibliography', 'bibliographies', 'book', 'books'],
1173+
},
11701174
{ name: 'folder-link', folderNames: ['link', 'links'] },
11711175
],
11721176
},

src/core/icons/languageIcons.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ export const languageIcons: LanguageIcon[] = [
125125
{ name: 'python-misc', ids: ['pip-requirements'] },
126126
{ name: 'vue', ids: ['vue', 'vue-postcss', 'vue-html'] },
127127
{ name: 'lua', ids: ['lua'] },
128-
{ name: 'lib', ids: ['bibtex', 'bibtex-style'] },
128+
{ name: 'bibliography', ids: ['bibtex'] },
129+
{ name: 'bibtex-style', ids: ['bibtex-style'] },
129130
{ name: 'log', ids: ['log'] },
130131
{ name: 'jupyter', ids: ['jupyter'] },
131132
{ name: 'document', ids: ['plaintext'] },

0 commit comments

Comments
 (0)