https://github.com/sayanarijit/fzf.xplr
fzf integration for xplr
https://github.com/sayanarijit/fzf.xplr
Last synced: 7 months ago
JSON representation
fzf integration for xplr
- Host: GitHub
- URL: https://github.com/sayanarijit/fzf.xplr
- Owner: sayanarijit
- License: mit
- Created: 2021-06-24T06:06:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-04T08:42:22.000Z (about 2 years ago)
- Last Synced: 2025-03-19T06:04:54.867Z (7 months ago)
- Language: Lua
- Homepage: https://xplr.dev
- Size: 15.6 KB
- Stars: 20
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gifyu.com/image/rG21)
## Requirements
- [fzf](https://github.com/junegunn/fzf)
## Installation
### Install manually
- Add the following line in `~/.config/xplr/init.lua`
```lua
local home = os.getenv("HOME")
package.path = home
.. "/.config/xplr/plugins/?/init.lua;"
.. home
.. "/.config/xplr/plugins/?.lua;"
.. package.path
```- Clone the plugin
```bash
mkdir -p ~/.config/xplr/pluginsgit clone https://github.com/sayanarijit/fzf.xplr ~/.config/xplr/plugins/fzf
```- Require the module in `~/.config/xplr/init.lua`
```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.