-
Notifications
You must be signed in to change notification settings - Fork 103
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
Display a partial match and require a second press of tab to open fzf #8
Comments
It should be as straightforward as something like fzf-tab-partial-and-complete() {
if [[ $LASTWIDGET = 'fzf-tab-partial-and-complete' ]]; then
fzf-tab-complete
else
zle complete-word
fi
}
zle -N fzf-tab-partial-and-complete
bindkey '^I' fzf-tab-partial-and-complete but I'm not sure if it ideally should be a separate widget like the above, or a zstyle governing |
@rolandwalker That function doesn't work as intended when there is no common prefix: |
I would love this as well... Is there any (custom) solution out there that will enable this behavior? Thanks! |
TL;DR: After way too long, I notice this line (and later the wiki documentation for it): 126: Basically, a combination of It's not perfect, it might add a space at the end or a slash if one of the matches is a folder. Relevant doco: |
This seems to be the way the plugin functions now, possibly after #413 was merged |
Okay this is a bit hard to explain, but here goes:
For example, when you have two files with a similar beginning, lets say
file1.txt
andfile2.txt
, most tab completion implementations I've seen works like this:At this point, when tab is pressed a second time, the completion plugin is invoked. I understand that this might be a personal preference, but I just thought to throw this idea out here.
The text was updated successfully, but these errors were encountered: