Skip to content

Wrong filepath opened when selecting file #2862

Closed
@LandonHarter

Description

@LandonHarter

Description

I am unable to open a file and read it because nvim-tree, when selecting a file, will open a nonexistent file. The route it should be opening should be \app\(pages)\(app)\document\[id]\page.tsx but instead opens \app(pages)(app)\document\[id]\page.tsx. I don't seem to have this issue with other plugins such as telescope, where I can use the file finder and it will give me a preview of the content (I will provide an image below). My guess is when it tries to put a backslash before a parenthesis, it registers it as just a parenthesis (kind of how in regex you have to put a backslash before some characters).

Incorrect Path

image

Telescope Displaying Content Correctly

image

Neovim version

NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713484068

Operating system and version

Windows 11

Windows variant

No response

nvim-tree version

v1.5.0 (latest)

Clean room replication

I am a bit confused about this step, but you can find my neovim setup here:
https://github.com/LandonHarter/neovim/master

Steps to reproduce

  1. Create a directory that starts and ends with parenthesis (maybe try nesting a few together like mine in the photo)
  2. Create a file in one of the new directories
  3. Try to open the file with nvim-tree

Expected behavior

Opens the file

Actual behavior

Tries to open a nonexistent file leading to me being unable to edit the file

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS Windowsspecific to windowsPR pleasenvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatedbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions