sorin-ionescu / prezto

The configuration framework for Zsh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feat] : Add a fzf like search

ierezell opened this issue · comments

Description

Add a fzf like search capability to the classic search

Could be done with something like : https://github.com/joshskidmore/zsh-fzf-history-search

Expected behavior

When doing an history search use the power of fzf to show a list of possible commands

Actual behavior

Ctrl-r just shows one command and is not fuzzy found

I used it with zinit before changing for zprezto (which is simpler and nicer) and really liked this feature.

Thanks in advance,
Have a great day

This is a pretty cool plugin, but I'm not sure it really belongs in core Prezto. For features like this, it is usually preferable to add them yourself as a "contrib" in your own config. If you want to add this Zsh plugin as a Prezto contrib, you can run the following from your interactive Zsh terminal:

repo=joshskidmore/zsh-fzf-history-search
git clone https://github.com/$repo ${ZPREZTODIR:-~/.zprezto}/contrib/${repo:t}

Then add the contrib to your .zpreztorc:

zstyle ':prezto:load' pmodule \
  ... \
  zsh-fzf-history-search

I can confirm that adding it as a contrib module works perfectly! :)

I guess we can close this as we can use this feature in zprezto out of the box (even if it's not in the core).

Thanks for you time,
Have a great day