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

Features Request : auto tab-Completion #313

Open
JE-Amouel opened this issue Sep 24, 2024 · 9 comments
Open

Features Request : auto tab-Completion #313

JE-Amouel opened this issue Sep 24, 2024 · 9 comments

Comments

@JE-Amouel
Copy link

Hi,

Is your feature request related to a problem? Please describe.
I'm really a fan of your idea of ​​being able to first call the name of a file then and then give the name of "the command", it really saves me time on a lot of things, seeing as when we're working between two The most annoying directory is having to type in entire directory names, so I often prefer to start with the most annoying.

Describe the solution you'd like

I would like to be able to make the Tab completion automatic,
ie I just want to be able to directly type Text and see the completion listing directly appear in our dear fzf, without need to press Tab each time, is that possible?.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

THANKS

@leo-arch
Copy link
Owner

I think I've seen this somewhere. It would be like a mix between suggestions (which are automatic) and TAB completion. I'll take a look at it, but don't promise anything.

@JE-Amouel
Copy link
Author

You're the best, I'm sure you'll succeed.

@JE-Amouel
Copy link
Author

Clifm has already shown me lots of things that I thought were impossible in a terminal but you did it.

@JE-Amouel
Copy link
Author

Hi, is there any update 👀

@leo-arch
Copy link
Owner

leo-arch commented Jan 3, 2025

Hi @JE-Amouel. In order to implement this we want:

  1. Trigger the completions window with any key press on the command line.
  2. Update possible completions on the fly as command line input is processed.
  3. Keep the focus on the command line and change to the completion window with some specific key press.

For the time being, and given the resources we handle, points 2 and 3 cannot be done. Once the completion window is triggered, we loose the focus until it is closed. Why? Because we spawn a new process each time the completions window is triggered.

In order for this to be achieved we need to implement a builtin and completely new completions system.

Summarizing, no, it's not possible (at least not now).

@JE-Amouel
Copy link
Author

Thank you for your effort to make this possible on this program that I enjoy using daily, I would also like to tell you about my findings, which is a zsh Plugins, try it to see, maybe it can inspire you other ways. zsh Autocomplete

@leo-arch
Copy link
Owner

leo-arch commented Jan 3, 2025

Yes, auto TAB completion is possible in zsh because it has its own builtin command line editor, including the completions system: zle (ZSH line editor).

And thanks for your kind words!

@JE-Amouel
Copy link
Author

Do you think it would be possible to just add a Tab character after each character on the keyboard you type? And that without using a line editor? Each key on the keyboard would always be a character + Tab combination.

@leo-arch
Copy link
Owner

leo-arch commented Jan 3, 2025

Yes, that's possible. But, since you'd lose the focus, which would be now on the completions window, you won't be able to keep typing. This is the point 1 I mentioned above: points 2 and 3 are the problematic ones.

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

No branches or pull requests

2 participants