Skip to content

Inconsistent treatment of R file extensions #1001

@kevin820606

Description

@kevin820606

I've noticed an inconsistency in how the neotree handles file extensions. When creating an R file with an uppercase file extension (e.g., .R), neotree does not recognize it as an R file. However, if I use a lowercase file extension (e.g., .r), neotree correctly identifies it as an R file. It is worth mentioning that most style guides for R language recommend using uppercase file extensions (even in R's source code). Additionally, the lualine plugin does not exhibit this inconsistency and treats both uppercase and lowercase R file extensions as the same.

While this issue is not critical, I would appreciate guidance on configuring neotree to treat both .R and .r file extensions consistently. Alternatively, if there is a possibility of addressing this in the plugin's source code, I'm not familiar with Lua scripting and would appreciate help in submitting a request.

Please refer to the following screenshots for clarification:

  • In neotree, .R and .r are treated differently.
    image
  • In lualine, both .R and .r are treated equally.
    image
    image

Thank you for your attention to this matter. I would appreciate any suggestions or guidance on how to resolve this inconsistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions