chadtree icon indicating copy to clipboard operation
chadtree copied to clipboard

Issue with path handling in windows environments with parentheses

Open yuseku opened this issue 3 months ago • 1 comments

Hi there

As I work on a Next.js application, I'm running into a path handling problem that seems to be more prevalent in Windows systems. I have organized route groups in my project, however CHADTree does not accept parenthetically enclosed routes correctly when I try to access files through them.

Description of Issue: CHADTree opens an incorrect, empty file from a faulty path: app(routes)\car\page.tsx when it tries to open a file with the path app\(routes)\car\page.tsx. The way parenthesis in the path are handled seems to be the cause of this problem.

A Reference to a Related Problem: This issue appears to be similar to a known Neovim Windows bug that is addressed here: Neovim Issue #24542, in which parenthetically enclosed file paths are treated incorrectly.

yuseku avatar Apr 19 '24 21:04 yuseku

Can confirm, happens with lazyvim. However, you can circumvent this by using plain vim inside Git Bash. nvim does not work inside git bash. Try this command inside git bash winpty nvim Keep in mind that square brackets do not work You can also try setting up neovim inside wsl ubuntu, but I personally would not recommend

zorjo avatar Apr 29 '24 04:04 zorjo