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

Issue with path handling in windows environments with parentheses #362

Open
yuseku opened this issue Apr 19, 2024 · 1 comment
Open

Issue with path handling in windows environments with parentheses #362

yuseku opened this issue Apr 19, 2024 · 1 comment

Comments

@yuseku
Copy link

yuseku commented Apr 19, 2024

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.

@zorjo
Copy link

zorjo commented Apr 29, 2024

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

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

No branches or pull requests

2 participants