Skip to content

fix: improve worktree path handling for cross-platform compatibility#1035

Merged
mashraf-222 merged 2 commits into
mainfrom
fix/worktree-path-highlighted-windows
Jan 9, 2026
Merged

fix: improve worktree path handling for cross-platform compatibility#1035
mashraf-222 merged 2 commits into
mainfrom
fix/worktree-path-highlighted-windows

Conversation

@mashraf-222

Copy link
Copy Markdown

Fix: Support Windows paths in worktree path simplification

Fixed simplify_worktree_paths to handle Windows paths. The regex only matched Unix-style paths, and path splitting used / only.

Changes:

  • Updated regex to match both forward and backslashes
  • Replaced split("https://github.com/") with Path(...).name for cross-platform path handling

Works on both Unix and Windows without changing behavior.

@mashraf-222 mashraf-222 merged commit 524c0d3 into main Jan 9, 2026
21 of 22 checks passed
@mashraf-222 mashraf-222 deleted the fix/worktree-path-highlighted-windows branch January 9, 2026 15:13
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

Successfully merging this pull request may close these issues.

3 participants