extra-fzf-completions
⚠️ DEPRECATED. Use fzshell instead.
Simple, seamless fzf-based completions for a few applications
!! In ALPHA !!
Project is actively evolving so expect breaking changes and bugs!
Do you have a suggestion?
If you have a suggestion regarding expanding functionality i.e., adding more
completions, supported applications etc. then create an issue! Feedback is appreciated.
List of supported applications:
- docker
- kubectl
- jira
Installation
zsh
Preferably use package manager like zgen and add to your .zshrc:
zgen load mnowotnik/extra-fzf-completionsOr simply clone and source:
source /path/to/extra-fzf-completions/extra-fzf-completions.plugin.zshbash
Clone and:
source /path/to/extra-fzf-completions/extra-fzf-completions.plugin.bashUsage
Supported commands are of type:
<command> <action(s)> **<TAB>The fzf-powered fuzzy completion should appear after pressing TAB.
Configuration
First, enable completion in your zshrc or bashrc file:
export EXTRA_FZF_COMPLETIONS=(docker kubectl jira)docker
Docker completion supports a couple of actions:
run<- docker image completionexec<- container completionrm<- image completionstop<- container completion
kubectl
Currently only completes pod names. Detects namespace if defined or uses the default one.
kubectl logs -n my_ns **<TAB>jira
Provides a list of issues using the default user configuration.
jira <action> **<TAB>Additional configuration
Some settings are controled through environment variables:
EXTRA_FZF_COMPLETIONS_FZF_PREFIX- overrides default fzf prefix used in completions.EXTRA_FZF_COMPLETIONS_TIMEOUT- the completion timeout in seconds (default 7).