Skip to content

Directory tree view is flattened on Windows directories (works correctly in Linux/WSL-only paths) #19

@ElementumIT

Description

@ElementumIT

When using codegrab on Linux, the directory tree view properly nests directories and files. However, when I use codegrab in Windows directories (even when accessed via Git Bash or WSL), the directory tree is flattened—files and folders all appear at the same level, making navigation more difficult.

Notably:
The issue occurs whenever codegrab is run in a Windows directory, regardless of whether I'm using Git Bash or WSL.
If I stay within WSL-native directories, the nesting works as expected.
Functionality seems otherwise unaffected, but the flat view hampers usability.

Steps to Reproduce:
Open codegrab in a Windows directory (e.g., /mnt/c/Users/...) using Git Bash or WSL.
Observe that the directory tree is not nested.
Compare with running codegrab in a purely WSL/Linux directory (e.g., ~/projects/...), where nesting works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions