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] Enable tab-expansion as a strategy #808

Open
faelin opened this issue Oct 3, 2024 · 3 comments
Open

[feature request] Enable tab-expansion as a strategy #808

faelin opened this issue Oct 3, 2024 · 3 comments

Comments

@faelin
Copy link

faelin commented Oct 3, 2024

It would be awesome (but maybe infeasible) to enable tab-expansion completions as a strategy. Specifically, I am thinking of folder-name completions.

Would this even be feasible within the autosuggestion framework?

@faelin
Copy link
Author

faelin commented Oct 3, 2024

(p.s. I love this tool, great work y'all!)

@ericfreese
Copy link
Member

Check the suggestion strategy config option: https://github.com/zsh-users/zsh-autosuggestions?tab=readme-ov-file#suggestion-strategy

@faelin
Copy link
Author

faelin commented Oct 4, 2024

Ah, I made a silly mistake. I tried to set the TAB key as the accept-suggestion widget binding, but that prevents the tab-expansion completion from functioning. I don't know if it's possible, but I would love a way to set the tab-key as the binding for BOTH accept-suggestion and tab-expansion if a completion is not currently suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants