Skip to content

sayanarijit/fzf.xplr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

xplr-fzf.gif

Requirements

Installation

Install manually

  • Add the following line in ~/.config/xplr/init.lua

    local home = os.getenv("HOME")
    package.path = home
    .. "/.config/xplr/plugins/?/init.lua;"
    .. home
    .. "/.config/xplr/plugins/?.lua;"
    .. package.path
  • Clone the plugin

    mkdir -p ~/.config/xplr/plugins
    
    git clone https://github.com/sayanarijit/fzf.xplr ~/.config/xplr/plugins/fzf
  • Require the module in ~/.config/xplr/init.lua

    require("fzf").setup()
    
    -- Or
    
    require("fzf").setup{
      mode = "default",
      key = "ctrl-f",
      bin = "fzf",
      args = "--preview 'pistol {}'",
      recursive = false,  -- If true, search all files under $PWD
      enter_dir = false,  -- Enter if the result is directory
    }
    
    -- Press `ctrl-f` to spawn fzf in $PWD

Features

  • Search is done on the filtered sorted paths via xplr.
  • Option to toggle into recursive search.
  • Option to toggle enter directory.

About

fzf integration for xplr

Resources

License

Stars

Watchers

Forks

Languages