Since version v0.19.4
, xplr search will default to native fuzzy matching.
This plugin is for people who prefer the old regex based filtered search because it allows more control for advanced use cases.
-
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/regex-search.xplr ~/.config/xplr/plugins/regex-search
-
Require the module in
~/.config/xplr/init.lua
require("regex-search").setup() -- Or require("regex-search").setup{ mode = "default", -- or xplr.config.modes.builtin.default key = "/", -- or xplr.config.modes.builtin.default.key_bindings.on_key["/"] prompt = "/", initial_input = "(?i)^", } -- Type `/` and then the pattern to match