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

🐛 fix additional + in git local branches #1019

Merged

Conversation

AucaCoyan
Copy link
Contributor

Hi! I realized if you use worktrees, with at least one branch checked out and you:

git switch <tab>

the autocompletion is wrong, putting a + before the branch, and piping it into the cmdline.

This comes from nu-complete git local branches function, it which it only replaces * for the current branch, but it doesn't for + for worktrees.
Here is a sample:

image

I tested on my pc and works allright!

@fdncred fdncred merged commit 759218d into nushell:main Jan 25, 2025
1 check passed
@fdncred
Copy link
Collaborator

fdncred commented Jan 25, 2025

Thanks

@AucaCoyan AucaCoyan deleted the fix-git-local-branches-autocompletion branch January 25, 2025 14:34
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