Skip to content

Conversation

@Bharath-code
Copy link
Owner

@Bharath-code Bharath-code commented Dec 16, 2025

Description

This PR introduces in-app workspace switching.

Current status:

  • Workspace modal wired
  • Path normalization + symlink resolution added

Still in progress:

  • UX polish
  • Edge-case handling

Feedback welcome before finalizing.

Type of Change

  • ✨ New feature (non-breaking change that adds functionality)

Checklist

  • I have tested my changes locally
  • I have updated the documentation (if applicable)
  • My code follows the project's style guidelines
  • I have added tests that prove my fix/feature works (if applicable)

Screenshots (if applicable)

Screenshot 2025-12-17 at 2 25 45 PM Screenshot 2025-12-17 at 2 28 02 PM Screenshot 2025-12-17 at 2 29 03 PM Screenshot 2025-12-17 at 2 29 19 PM Screenshot 2025-12-17 at 2 29 40 PM Screenshot 2025-12-17 at 2 29 57 PM

@Bharath-code Bharath-code changed the title feat: Add workspace switching functionality with path normalization and dedicated TUI state. WIP: In-app workspace switching Dec 16, 2025
@Bharath-code
Copy link
Owner Author

Run

./git-scope
Press w, enter valid path, press Enter
Nudge should appear after successful switch
Press S → browser opens to GitHub repo
Restart app, switch workspace → nudge should NOT reappear

@Bharath-code
Copy link
Owner Author

Action Result
Press a Opens workspace switch modal
Type path + Enter Validates, resolves symlinks, scans workspace
Press Esc Cancels modal, returns to dashboard
Invalid path Shows inline error in modal
Empty workspace Shows "No git repos found" message

@Bharath-code
Copy link
Owner Author

Test scenarios:

Press a → Modal opens with "Switch Workspace" title
Press Esc → Modal closes
Type ~/Desktop and press Enter → Scans Desktop directory
Type /nonexistent and press Enter → Shows "path does not exist" error
Type . and press Enter → Expands to current directory
Create symlink and test: ln -s ~/Desktop ~/test-link && ./git-scope → Press a, type ~/test-link, verify it resolves

@Bharath-code Bharath-code marked this pull request as ready for review December 17, 2025 12:08
@Bharath-code
Copy link
Owner Author

Added

  • Switch workspaces inside git-scope without restarting
  • Support for relative paths and symlinked directories

This release focuses on staying in flow when working across many repos.

@Bharath-code Bharath-code merged commit cf1f6ad into main Dec 17, 2025
@Bharath-code Bharath-code deleted the workspace-switch branch December 17, 2025 12:11
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.

2 participants