Skip to content

feat(carapace): use as a fallback - #1747

Open
scop wants to merge 2 commits into
mainfrom
feat/carapace-fallback
Open

scop wants to merge 2 commits into
mainfrom
feat/carapace-fallback

Conversation

@scop

@scop scop commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Comment thread bash_completion Resolved
@akinomyoga

Copy link
Copy Markdown
Collaborator

The setup page of Carapace mentions the way to enable Carapace for a specific command, which can be used when the user doesn't want to enable all the completions provided by Carapace. However, if we fall back to Carapace when another completion is not found, we break such a setup; we end up enabling all the completions provided by Carapace in the presence of bash-completion.

Can we make this an opt-in feature?

@scop

scop commented Oct 2, 2026

Copy link
Copy Markdown
Owner Author

I don't think this would be much of a problem. If some completions from carapace are not wanted, I feel it's quite likely that some other completion would be desirable for the command instead which is to be handled some way anyway (and we would not overwrite that). The case where one wants the vanilla bash experience would need an explicit "opt-out" after this, that's true, and that can be done by defining complete -o filenames -o bashdefault foo or whatever it is that accomplishes that. Making this opt-in would make it kind of alien as far as bash-completion is concerned -- we don't do that for anything else we ship either.

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