8000 Specify main worktree folder from settings · Issue #18 · jackiotyu/git-worktree-manager · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Specify main worktree folder from settings #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SkullYGD opened this issue Feb 26, 2025 · 3 comments
Closed

Specify main worktree folder from settings #18

SkullYGD opened this issue Feb 26, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@SkullYGD
Copy link

Feature description
I would like to have the possibility to specify the relative folder location of the main worktree folder from the extension settings.
For example if I have a folder structure with 1 base directory that has 3 subdirectories like illustrated below and I open VSCode in the /base directory. I would like to be able to specify that the extension should use /base/subA for any actions connected to working with worktrees even though it is not the working dir in VSCode

/base
    /base/subA
    /base/subB
    /base/subC

How would you use this feature?
I like having a repo structure as illustrated below but find the overhead of having each worktree in a separate VSCode window a bit annoying. Therefore having one vscode window in the parent dir of the separate worktrees makes switching topics easier but it is unfortunately not possible to manage worktrees from there

Example folder structure

/base                           (Not a git repo; vscode opened here)
    /base/main/                 (Git Repo; worktree main folder) 
    /base/featA/
    /base/featB/
    /base/bugfixA/

Having a setting like the following would help.
Default:

Worktree main folder location:
.                    /base

My setting:

Worktree main folder location:
./main                /base/main
@SkullYGD SkullYGD added the enhancement New feature or request label Feb 26, 2025
@jackiotyu
Copy link
Owner

@SkullYGD Hello, thank you for your feedback. However, I'm not quite sure I understand this approach.

On one hand, having too many files and worktrees in a VSCode workspace can be quite resource-intensive (due to file change listening and search queries being impacted). On the other hand, this plugin already provides the functionality to add directories to the workspace at any time, open a specific worktree's Git repository, and add a main directory to Git repository management. You can view any associated worktrees easily by either using the Quick Pick or opening the plugin's tree view.

Example usage

@SkullYGD
Copy link
Author

@jackiotyu Thanks for the answer. I didn't know there was a feature to quickly add the folder to the workspace. This fixes the issue I mentioned.

@jackiotyu
Copy link
Owner
jackiotyu commented Feb 27, 2025

@SkullYGD You're welcome. Maybe I should write a detailed wiki for the current features of this extension.🤠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants
0