Skip to content

Treemacs doesn't recognize file as in treemacs/workspace with uppercased drive letter on Windows #1164

@krn-sebastiaan

Description

@krn-sebastiaan

Given the following situation:

I have a file on my D-drive, and I added a project (D:/foo/bar) to Treemacs.
When opening the file D:/foo/bar/baz, Treemacs didn't recognize the file was followed in Treemacs.

I went down the line and found treemacs--project-of-buffer was nil. Eventually I found this line:

(when path (setf treemacs--project-of-buffer (treemacs-is-path path :in-workspace)))))

It sends path was d:/foo/bar/baz, so treemacs-is-path returned nil.

Switching the drive letter to d instead of D fixed the issue.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions