Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for .tex, .r and .rmd files. #195

Closed
qifei9 opened this issue Feb 21, 2017 · 12 comments
Closed

Add support for .tex, .r and .rmd files. #195

qifei9 opened this issue Feb 21, 2017 · 12 comments

Comments

@qifei9
Copy link

qifei9 commented Feb 21, 2017

I am not sure whether this is the right place to ask for it. However it would be wonderful if this plugin could support .tex (latex), .r (R language) and .rmd (rmarkdown) filetypes.

For .rmd file, it could be the same icon as markdown file.
For .tex and .r files, I see icons in file-icons font https://github.com/file-icons/source/blob/master/charmap.md.

@ryanoasis
Copy link
Owner

Sure actually this us a good place. Nice I don't think I knew about this font. I can try to add it to Nerd Fonts

@ryanoasis ryanoasis added this to the v0.9.0 milestone Feb 21, 2017
@petobens
Copy link

+1 ! It would be awesome to add this font to Nerd Fonts

@ryanoasis ryanoasis removed this from the v0.9.0 milestone Apr 29, 2017
@ryanoasis
Copy link
Owner

ryanoasis commented Apr 29, 2017

@qifei9 , @petobens
Unfortunately going to push this off it will require updates to Nerd Fonts and I just cannot find suitable glyphs for these in the current offering.

I am trying to get v0.9.0 out the door 📦

edit: Well I can add rmd so I will do that but let's keep this issue open for now 😊

@ryanoasis ryanoasis modified the milestone: v0.10.0 May 2, 2017
@ryanoasis ryanoasis removed this from the v0.10.0 milestone Jan 21, 2018
@michaelquinn32
Copy link

Font-awesome just added support for R. I know that you have plenty on your plate, but how long does it normally take for FA upgrades to appear here?
https://github.com/FortAwesome/Font-Awesome/blob/master/CHANGELOG.md#5011----2018-05-01

Thanks for all of your work!

@ryanoasis
Copy link
Owner

ryanoasis commented May 4, 2018

@michaelquinn32 Ah okay nice. So Nerd Fonts is currently on 4.7.0 (hasn't made the jump to 5.x yet). There is discussion whether or not to make FA 5 the default or switch to Font Awesome Extension.

I know that you have plenty on your plate

Thanks for the understanding. 😄

Relevant tickets:
ryanoasis/nerd-fonts#221
ryanoasis/nerd-fonts#241

Edit:

Thanks for all of your work!

Thanks, appreciate it.

@michaelquinn32
Copy link

Great! Thanks for everything that you've been working on. It's all much appreciated.

@vando026
Copy link

vando026 commented Dec 31, 2018

Hi Just following up on this thread. If anyone wants to use the r glyph for the .r filetype (and dont want to wait for the upgrade to FA5), you can download:

https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/bin/scripts/lib/i_material.sh

into the dir path below and then:

source ~/.local/share/fonts/i_material.sh
echo $i_mdi_language_r

and copy the output from the terminal or open i_material.sh in gvim and copy the glyph (from line 2009) and then paste it into the following configuration

let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {} " needed
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['r'] = 'ﳒ'

which you can put in your vimrc. This works for me with Vim 8.1 and Ubuntu 18.04.

@alexhallam
Copy link

I think .Rproj files could use an icon also. i_mdi_vector_rectangle seemed sensible.

let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['rproj'] = '鉶'

@andregpss
Copy link

Is there a latex/tex icon already? I just installed devicons and .tex files shows the default icon.

@ryanoasis
Copy link
Owner

proposal:

latex (.tex):
Selection_036
I think this actually looks better than say vscode's latex icon (TeX)

.r:
Selection_038

.Rproj:
Selection_037

@ryanoasis ryanoasis added this to the v0.13.0 milestone Apr 10, 2020
@get-me-power
Copy link
Collaborator

@ryanoasis
I think this proposal is looked good to me.

@sadtab
Copy link

sadtab commented Aug 20, 2020

Hi @ryanoasis , I think I just found a bug in NERDTree with devicons, I think its related to this issue. Every file with TeX icon flip to the right of screen

image

But if i change the extention every thing goes back to normal :

image

This is my firt activity on Github so maybe I didn't post it on the right place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants