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

add autocomplete support for zsh and fish shells #267

Closed
wants to merge 4 commits into from

Conversation

mjurbanski-reef
Copy link

No description provided.

@mjurbanski-reef mjurbanski-reef force-pushed the zsh_autocomplete branch 24 times, most recently from 5578e03 to 28d0af0 Compare March 28, 2024 11:57
b2/_internal/_cli/autocomplete_install.py Outdated Show resolved Hide resolved
b2/_internal/_cli/autocomplete_install.py Outdated Show resolved Hide resolved
b2/_internal/_cli/autocomplete_install.py Outdated Show resolved Hide resolved
@emnoor-reef
Copy link

emnoor-reef commented Mar 28, 2024

The first time triggering the autocomplete just prints with completion options. On the second time the auto completion can be selected. The printed options from the first time stays in the shell scrollback buffer, which doesn't usually happen on zsh.
IDK, if it is a argcomplete bug or not.

Screen.Recording.2024-03-28.at.9.31.46.PM.mov

@emnoor-reef
Copy link

Something similar happens on fish. The autocomplete selection actually starts on send Tab. But the options are not left in scrollback buffer like zsh. Not a fish user, so IDK if this behaviour is expected.

Screen.Recording.2024-03-28.at.9.40.27.PM.mov

@mjurbanski-reef
Copy link
Author

The first time triggering the autocomplete just prints with completion options. On the second time the auto completion can be selected. The printed options from the first time stays in the shell scrollback buffer, which doesn't usually happen on zsh. IDK, if it is a argcomplete bug or not.

Screen.Recording.2024-03-28.at.9.31.46.PM.mov

this behavior is due to the sheer number of completions suggested as far as I can tell - I can reproduce it using by trying to complete git -

@emnoor-reef
Copy link

If you have too many suggestions, zsh prompts you if you want to see them or not:

zsh: do you wish to see all 155 possibilities (155 lines)?

For b2 it doesn't happen.

@mjurbanski-reef
Copy link
Author

thats weird, it does prompt me
image

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