-
Notifications
You must be signed in to change notification settings - Fork 137
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
Dynamic completion #406
Dynamic completion #406
Conversation
I've also added a description to README. |
Could the PR be merged? |
d141d5e
to
452b095
Compare
Could the PR be merged? |
Alias all plugins with ~plgname to point to their directory.
e1291fa
to
883275a
Compare
I've cleanup the PR (squash and 'feat:" prefix), could it be merged? |
One will be able to obtain, e.g.: zinit fzf<Alt>-<Shift>-A » zinit junegunn/fzf zinit cd rip<Alt>-<Shift>-A » zinit cd BurntSushi/ripgrep and so on. The <Alt>-<Shift>-A shortcut works with ALL commands, regardless if it's zinit command or not. Two autoloaded functions added, ziactioncomplete (the proper imple- mentation of the main features) and ziprocessbuffer (a very useful library function that takes care of $BUFFFER/$CURSOR processing). Also Feature: Cycling and ice-completion (<Alt>-<Shift>-C). Cycling will allow to choose a particular match, say for, e.g.: zinit at<Alt>-<Shift>-C » zinit atclone<Alt><Shift>-C » zinit atinit<Alt>-<Shift>-C
883275a
to
38ddf2d
Compare
Is there any obstacle to merge the commit? It's an isolated change – active at prompt, live – it cannot break anything… |
@vladdoster Could the PR be merged as an Xmas gift? A mention of this could be added to README.md. |
@vladdoster @pschmitt @jankatins ping for merging this PR, presentation: |
Description
Complete plugin ids at any position in the command line via
Alt-Shift-A
and ices viaAlt-Shift-C
. Both keys are unbound by default, and can be customized via two zstyles, e.g.:Motivation and Context
Current normal completion doesn't work with
for
-syntax – it'll not complete plugin id for, e.g.:While the new, action-complete, will work at any position.
Related Issue(s)
Closes #331.
Usage examples
See: https://asciinema.org/a/3bzyTIEXN4iNiDLyRAARcDypt
Types of changes
Checklist: