Code Monkey home page Code Monkey logo

fzf-prezto's Introduction

fzf Module for Prezto

This plugin tries to find junegunn's fzf based on where it has been installed, and enables its fuzzy auto-completion and key bindings, for use with the Prezto ZSH configuration framework.

This plugin essentially adds Prezto zstyle configuration options to the Oh My ZSH plugin with inspiration drawn from https://github.com/gpanders/fzf-prezto.

Installation

Prezto will load external modules found in the $ZDOTDIR/.zprezto/contrib directory so this is a good place to install this plugin:

mkdir -p $ZDOTDIR/.zprezto/contrib
git submodule add -f https://github.com/lildude/fzf-prezto contrib/fzf

Settings

Enable the plugin by adding fzf to the zstyle ':prezto:load' pmodule list in your .preztorc file.

You can then add the following configuration options to your .preztorc to customise the behaviour:

# Forcefully Set to fzf installation directory path - default will try to detect the correct location
zstyle ':prezto:module:fzf' fzf-base '/path/to/fzf/install/dir'

# Set the default command to use when input is tty - default is to set it to these in the order in which they're found:
# - `rg --files --hidden --glob "!.git/*"`
# - `fd --type f --hidden --exclude .git`
# - `ag -l --hidden -g "" --ignore .git`,
zstyle ':prezto:module:fzf' fzf-default-command '<your fzf default commmand>'

# Disable keybindings - default: no
zstyle ':prezto:module:fzf' disable-key-bindings 'yes'

# Disable completion - default: no
zstyle ':prezto:module:fzf' disable-completion 'yes'

# Set height of the fzf results - default: full height
zstyle ':prezto:module:fzf' height '30%'

# Show file preview with ctrl+t and directory contents preview (needs tree) with alt-c
zstyle ':prezto:module:fzf' preview 'yes'

# Open fzf results in a tmux pane, if using tmux - default: no
zstyle ':prezto:module:fzf' tmux 'yes'

# Order output in reverse order - default: no
zstyle ':prezto:module:fzf' reverse 'yes'

# Set the color scheme
zstyle ':prezto:module:fzf' color-scheme 'Solarized Light'

Color Schemes

The colors.zsh file currently contains fourteen color schemes from https://github.com/junegunn/fzf/wiki/Color-schemes and the four defaults: dark, light, 16 and bw. You can add your own schemes to the colors.zsh file and set the scheme in your .zpreztorc.

fzf-prezto's People

Contributors

jspenced avatar lildude avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jspenced mteplyi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.