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

[Q] Can tab complete to the longest common prefix, then open fzf? #402

Closed
cohml opened this issue Dec 16, 2023 · 1 comment
Closed

[Q] Can tab complete to the longest common prefix, then open fzf? #402

cohml opened this issue Dec 16, 2023 · 1 comment
Labels
question Further information is requested

Comments

@cohml
Copy link

cohml commented Dec 16, 2023

Given the following directory:

$ ls
foo1.txt
foo2.txt
bar.txt

Is it possible to modify zstyle's completion behavior such that if I enter

$ ls f<tab>

it will complete the command line to

$ ls file

and then also open fzf with all the options beginning with f, i.e.,

file1.txt
file2.txt

? Then I'd just have to enter 1 or 2 to make a selection?

This would be a very nice way to communicate what the common prefix is for all items, starting with the substring I entered.

The default behavior just opens fzf without completing the common prefix for me. This means I have to scan the options to determine the prefix, which is more work for me.

Awesome plugin btw 😄

@cohml cohml added the question Further information is requested label Dec 16, 2023
@Aloxaf
Copy link
Owner

Aloxaf commented Feb 21, 2024

duplicate of #8

@Aloxaf Aloxaf closed this as completed Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants