Skip to content

Cannot open file whose filename or folder name has parenthesis "(" on Windows #2352

Closed
@xarthurx

Description

@xarthurx

Description

As the title says, I cannot open files that have "(" or ")" in their file name or folder structure.
It looks like the path xxx(abc)(edf).jsx will be interpreted incorrectly due to the "escaping" effect.

All file paths like xxx(index)(index).jsx will be interpreted to xxx(index)(index).jsx due to the "char escaping" mechanism...

See description and replies here:
neovim/neovim#24542

But even when I set shellslash, and can open those files with :e <filename>, I still cannot open the files in nvim-tree.
It seems nvim-tree does not follow the setting of shellslash

Neovim version

NVIM v0.9.1
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

Operating system and version

Windows 11

nvim-tree version

0a89dcb

Clean room replication

raw nvim with nvim-tree.

Steps to reproduce

  • create a folder/file with path like: xxx(index)(index).jsx
  • Open the file in nvim-tree.
  • The file cannot be opened/showing empty file.

Expected behavior

the file should be opened correctly.

Actual behavior

nvim shows an empty file -- this should be caused by the "escape" issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS Windows PowerShellspecific to windows powershellOS Windows WSLspecific to windows WSLPR 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