https://github.com/sayanarijit/regex-search.xplr
Bring back the regex based seach in xplr
https://github.com/sayanarijit/regex-search.xplr
Last synced: 7 months ago
JSON representation
Bring back the regex based seach in xplr
- Host: GitHub
- URL: https://github.com/sayanarijit/regex-search.xplr
- Owner: sayanarijit
- License: mit
- Created: 2022-09-25T15:58:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T06:14:35.000Z (over 1 year ago)
- Last Synced: 2025-03-19T06:04:10.305Z (7 months ago)
- Language: Lua
- Homepage: https://xplr.dev
- Size: 10.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# regex-search.xplr
Since version `v0.19.4`, xplr search will default to [native fuzzy matching](https://github.com/sayanarijit/xplr/pull/511).
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`
```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/regex-search.xplr ~/.config/xplr/plugins/regex-search
```- Require the module in `~/.config/xplr/init.lua`
```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
```