All Projects β†’ jethrokuan β†’ Fzf

jethrokuan / Fzf

Licence: mit
Ef-🐟-ient fish keybindings for fzf

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Fzf

fish
Fish config with awesome flexible prompt, unicode symbols, better fzf integration and lot of handy functions.
Stars: ✭ 27 (-95.49%)
Mutual labels:  fzf, fish-shell
Fzf.fish
Augment your fish command line with fzf key bindings.
Stars: ✭ 255 (-57.43%)
Mutual labels:  fzf, fish-shell
Zoxide
A smarter cd command. Supports all major shells.
Stars: ✭ 4,422 (+638.23%)
Mutual labels:  fzf, fish-shell
fish-exa
🐟 exa aliases for fish
Stars: ✭ 24 (-95.99%)
Mutual labels:  fish-shell
modern-linux.info
Learning Modern Linux book website
Stars: ✭ 35 (-94.16%)
Mutual labels:  fish-shell
Kubectl Fzf
A fast kubectl autocompletion with fzf
Stars: ✭ 315 (-47.41%)
Mutual labels:  fzf
Symfony Console Autocomplete
Shell autocompletion for Symfony Console based scripts
Stars: ✭ 465 (-22.37%)
Mutual labels:  fish-shell
theme-scorphish
Compact. Sufficient. PWD, Ruby+RVM, Python+VENV, Git status, Rust, NodeJS.
Stars: ✭ 33 (-94.49%)
Mutual labels:  fish-shell
Dtags
Directory Tags for Lazy Programmers
Stars: ✭ 351 (-41.4%)
Mutual labels:  fish-shell
Coc Fzf
fzf ❀️ coc.nvim
Stars: ✭ 261 (-56.43%)
Mutual labels:  fzf
Sad
CLI search and replace | Space Age seD
Stars: ✭ 350 (-41.57%)
Mutual labels:  fzf
Golang Tools Install Script
Simple Bash script to automate Go language tools single user installation or even removal.
Stars: ✭ 255 (-57.43%)
Mutual labels:  fish-shell
fzf-gems
a few fzf bindings for shell convenience
Stars: ✭ 25 (-95.83%)
Mutual labels:  fzf
Dotbare
Manage dotfiles and any git directories interactively with fzf
Stars: ✭ 327 (-45.41%)
Mutual labels:  fzf
fish logo
🐠 Fish shell colorful ASCII-art logo
Stars: ✭ 82 (-86.31%)
Mutual labels:  fish-shell
Done
A fish-shell package to automatically receive notifications when long processes finish.
Stars: ✭ 394 (-34.22%)
Mutual labels:  fish-shell
dotfiles
🐟 sheriferson's dot, config, and setup files
Stars: ✭ 13 (-97.83%)
Mutual labels:  fish-shell
fzf-folds.vim
Vim plugin that lets you fuzzy search for folds in a file
Stars: ✭ 15 (-97.5%)
Mutual labels:  fzf
Tmux Fzf
Use fzf to manage your tmux work environment!
Stars: ✭ 266 (-55.59%)
Mutual labels:  fzf
Fzf Preview.vim
The plugin that powerfully integrates fzf and (Neo)vim. It is also possible to integrate with coc.nvim.
Stars: ✭ 563 (-6.01%)
Mutual labels:  fzf

Fzf

Integrate fzf (command-line fuzzy finder) functionality into Fish. Includes handy functions to:

  • complete commands via Tab
  • search command history
  • find and cd into sub-directories
  • find and open files

All functions:

  • are lazily-loaded to keep shell startup time down
  • have configurable key bindings

Installation

System Requirements

Install with Fisher:

fisher install jethrokuan/fzf

Quickstart

Legacy New Keybindings Remarks
Ctrl-t Ctrl-o Find a file.
Ctrl-r Ctrl-r Search through command history.
Alt-c Alt-c cd into sub-directories (recursively searched).
Alt-Shift-c Alt-Shift-c cd into sub-directories, including hidden ones.
Ctrl-o Alt-o Open a file/dir using default editor ($EDITOR)
Ctrl-g Alt-Shift-o Open a file/dir using xdg-open or open command

Legacy keybindings are kept by default, but these have conflict with key bindings in Fish 2.4.0. If you want to use the new keybindings, Ζ’enter the following into your terminal:

set -U FZF_LEGACY_KEYBINDINGS 0

You can disable default keybindings altogether by running:

set -U FZF_DISABLE_KEYBINDINGS 1

Note: On OS X, Alt+C (Option-C) types Γ§ by default. In iTerm2, you can send the right escape sequence with Esc+C. If you configure the option key to act as +Esc (iTerm2 Preferences > Profiles > Default > Keys > Left option (βŒ₯) acts as: > +Esc), then Alt+C will work for fzf as documented.

Commands

Variable Remarks Example
FZF_FIND_FILE_COMMAND Modify the command used to generate the list of files set -U FZF_FIND_FILE_COMMAND "ag -l --hidden --ignore .git . \$dir 2> /dev/null" or set -U FZF_FIND_FILE_COMMAND "fd --type f . \$dir" ($dir represents the directory being completed)
FZF_CD_COMMAND Similar to ^ Similar to ^
FZF_CD_WITH_HIDDEN_COMMAND Similar to ^ Similar to ^
FZF_OPEN_COMMAND Similar to ^ Similar to ^
FZF_PREVIEW_FILE_CMD Modify the command used to generate preview of files. set -U FZF_PREVIEW_FILE_CMD "head -n 10"
FZF_PREVIEW_DIR_CMD Modify the command used to generate preview of directories. set -U FZF_PREVIEW_DIR_CMD "ls"

Variables

Variable Remarks Example
FZF_DEFAULT_OPTS Default options passed to every fzf command set -U FZF_DEFAULT_OPTS "--height 40"
FZF_FIND_FILE_OPTS Pass in additional arguments to the fzf command for find file set -U FZF_FIND_FILE_OPTS "--reverse --inline-info"
FZF_CD_OPTS Similar to ^ Similar to ^
FZF_CD_WITH_HIDDEN_OPTS Similar to ^ Similar to ^
FZF_REVERSE_ISEARCH_OPTS Similar to ^ Similar to ^
FZF_OPEN_OPTS Similar to ^ Similar to ^
FZF_COMPLETE_OPTS Similar to ^ Similar to ^
FZF_TMUX Runs a tmux-friendly version of fzf instead. set -U FZF_TMUX 1
FZF_ENABLE_OPEN_PREVIEW Enable preview window open command. set -U FZF_ENABLE_OPEN_PREVIEW 1

fzf Tab Completions

This package ships with a fzf widget for fancy tab completions.

Please see the wiki page for details.

Alternatives

  • fzf.fish is a newer fzf plugin with very similar features. It lacks Tmux support and fzf tab completion, but includes functions for searching git log, git status, and browsing shell variables using fzf. Additionally, it is more likely to be maintained going forward. You can read more about the differences between it and this plugin in the README of fzf.fish here.
  • The fzf utility ships with its own out-of-the-box Fish integration. What sets this package apart is that it has better shell integration, most notably tab completions. They are not compatible so use one or the other.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].