Skip to content
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

Feature Request: Add git worktree switcher like gcb #399

Open
5 of 10 tasks
deekshithanand opened this issue Sep 16, 2024 · 2 comments · May be fixed by #402
Open
5 of 10 tasks

Feature Request: Add git worktree switcher like gcb #399

deekshithanand opened this issue Sep 16, 2024 · 2 comments · May be fixed by #402
Assignees

Comments

@deekshithanand
Copy link

Check list

  • I have read through the README
  • I have the latest version of forgit
  • I have searched through the existing issues

Environment info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Others:
  • Shell
    • bash
    • zsh
    • fish

Feature Request:

Add a work tree switcher like gcb , leveraging fzf.

@carlfriedrich
Copy link
Collaborator

Thanks for your idea. I am not sure how the interface is supposed to look like. In forgit we only have wrappers for existing git functionality up to now, and there is no git worktree switch command or anything similar. Can you describe how your usecase looks like and what exactly you would like to achieve? Is it only about cding into a different work tree?

@carlfriedrich carlfriedrich linked a pull request Nov 4, 2024 that will close this issue
15 tasks
@suft
Copy link
Contributor

suft commented Nov 5, 2024

@deekshithanand what do you think of the following abbreviations?

All Possible Worktree Operations (https://git-scm.com/docs/git-worktree):

  • git worktree add
  • git worktree list
    • cd + interactive as gwj (git worktree jump - not a native git operation)
  • git worktree lock
    • interactive as gwl
  • git worktree move
  • git worktree prune
  • git worktree remove
    • interactive as gwr
  • git worktree repair
  • git worktree unlock
    • interactive as gwu

I have only implemented gwj, gwl, gwr, and gwu in #402.

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 a pull request may close this issue.

3 participants