Skip to content

Conversation

@mashraf-222
Copy link
Contributor

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("/") 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
23 of 24 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