Skip to content

sayanarijit/regex-search.xplr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

regex-search.xplr

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.

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/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

About

Bring back the regex based seach in xplr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages