All Projects → chengzeyi → fzf-preview.vim

chengzeyi / fzf-preview.vim

Licence: other
fzf ❤️ preview

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to fzf-preview.vim

fzf-hoogle.vim
(neo)vim plugin that uses fzf for previewing hoogle search results
Stars: ✭ 37 (-24.49%)
Mutual labels:  vim-plugin, fzf
fzf-checkout.vim
Manage branches and tags with fzf
Stars: ✭ 187 (+281.63%)
Mutual labels:  vim-plugin, fzf
Fzf Mru.vim
Vim plugin that is using fzf.vim to display your most recently used files.
Stars: ✭ 79 (+61.22%)
Mutual labels:  vim-plugin, fzf
fzf-folds.vim
Vim plugin that lets you fuzzy search for folds in a file
Stars: ✭ 15 (-69.39%)
Mutual labels:  vim-plugin, fzf
Notational Fzf Vim
Notational velocity for vim.
Stars: ✭ 975 (+1889.8%)
Mutual labels:  vim-plugin, fzf
Fzf Filemru
File MRU with fzf.vim
Stars: ✭ 76 (+55.1%)
Mutual labels:  vim-plugin, fzf
nvim-contabs
contextual tabs for vim/neovim
Stars: ✭ 20 (-59.18%)
Mutual labels:  vim-plugin, fzf
todo-vim
Simple todo plugin for vim
Stars: ✭ 24 (-51.02%)
Mutual labels:  vim-plugin
sysz
An fzf terminal UI for systemctl
Stars: ✭ 1,258 (+2467.35%)
Mutual labels:  fzf
poet-v
Vim Meets Poetry and Pipenv Virtual Environments
Stars: ✭ 57 (+16.33%)
Mutual labels:  vim-plugin
filestyle
filestyle is a Vim plugin that highlights unwanted whitespace and characters.
Stars: ✭ 30 (-38.78%)
Mutual labels:  vim-plugin
vim-gnote
make your mailbox as a note place
Stars: ✭ 16 (-67.35%)
Mutual labels:  vim-plugin
vim-flow-outline
Outline for JS modules with Flow
Stars: ✭ 16 (-67.35%)
Mutual labels:  fzf
DidYouMean
Vim plugin which asks for the right file to open
Stars: ✭ 82 (+67.35%)
Mutual labels:  vim-plugin
vim-rec
GNU Recutils syntax highlighting support for Vim
Stars: ✭ 30 (-38.78%)
Mutual labels:  vim-plugin
denops-gh.vim
Vim/Neovim plugin for GitHub
Stars: ✭ 27 (-44.9%)
Mutual labels:  vim-plugin
tmuxjump.vim
A plugin to open file from file paths printed in sibling tmux pane
Stars: ✭ 50 (+2.04%)
Mutual labels:  fzf
vim-lamp
💡Language Server Protocol client for Vim.
Stars: ✭ 34 (-30.61%)
Mutual labels:  vim-plugin
vim-commentor
Toggling comments became easier!
Stars: ✭ 29 (-40.82%)
Mutual labels:  vim-plugin
vim-terminal
A Vim plugin that opens an interactive terminal in a buffer for running programs
Stars: ✭ 45 (-8.16%)
Mutual labels:  vim-plugin

fzf-preview.vim

fzf ❤️ preview

Preview Everywhere

The preview functionality of fzf in vim is great. However, only limited commands of fzf.vim provide a preview window that you can press ctrl-/ key to toggle. If you want to enhance your fzf.vim by enabling the preview window everywhere, try this plugin! All of the commands support a ! as one of their arguments to start a full-screen window.

NOTE This plugin depends on fzf and fzf.vim so you need to install them first. You may also need to put the line to load this plugin after the line of installing fzf.vim in your plugin manager's configuration file since the commands from fzf.vim may override the commands provided by this plugin if you have let g:fzf_command_prefix = 'FZF' in your .vimrc.

NOTE To enable correct preview with FZFTags, you may need to add --excmd=number to your ctags' command-line arguments to help locate the line position of the tag. You also need to make sure the tags file is in the current vim since the file paths in the tags file might be relative paths, or you need to add --tag-relative=no to the arguments.

NOTE All the commands may require a Unix-like environment, or a bash emulator on Windows (WSL or something else, and is in your $PATH variable).

Dependencies

fzf 0.22.0 or above fzf.vim

Usage

Run a command, then press ctrl-/(the default key binding) to toggle preview.

Commands

  • FZF/FZFFiles: Search files with previewing file content.
  • FZFLocate: Use your system's file database to search files with previewing file content.
  • FZFGGrep: Use git grep to search your file content and preview the context of lines.
  • FZFGrep: Use grep to search your file content and preview the context of lines.
  • FZFAg: Use silversearcher-ag to search your file content and preview the context of lines.
  • FZFRg: Use ripgrep to search your file content and preview the context of lines.
  • FZFHistory: Browse edited files in vim's history list with previewing file content.
  • FZFBLines: Search all lines of the current buffer and previewing their context.
  • FZFTags: Search all the tags in vim's tags and previewing their context.
  • FZFBTags: Search all the tags of the current buffer and previewing their context.
  • FZFMarks: Search all the positions of vim's marks and preview their context. (Unix only, or won't be defined.)
  • FZFWindows: Search all the vim's windows and preview their content. (Unix only, or won't be defined.)
  • FZFQuickFix/FZFLocList': Search VIM's QuickFix/LocList entries with preview.

Differences between Current fzf.vim's Builtin Commands with preview

  • All comands support pressing ? to toggle preview.
  • The original Ag and Rg commands will also do fuzzy match on file names, which is annoying sometimes. Here they would only match lines.
  • FZFGGrep, FZFGrep: Use git grep and grep to search file content, which the original fzf.vim doesn't provide.
  • FZFBLines, FZFTags, FZFMarks and FZFWindows: The original fzf.vim does not support preview with those.
  • FZFQuickFix/FZFLocList: The original fzf.vim does not provide these commands.

Configuration

You can use the native fzf.vim's preview window configuration variable g:fzf_preview_window to customize the layout of the preview window, for example, let g:fzf_preview_window = ['up:60%', 'ctrl-/'] to put the preview window at the top 60% of the fzf terminal buffer and set ctrl-/ to toggle. If you don't want the preview window to be opened by default, you can set let g:fzf_preview_window = ['right:hidden', 'ctrl-/']. The three valid preview window layouts are up, down, left and right.

Screenshot

Screenshot

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].