vim9psgrep is a Vim9script plugin that integrates ripgrep with Vim, utilizing PowerShell scripts and Visual Basic popups.
- Efficient Searching: Utilizes ripgrep's performance for swift text searches.
- Quickfix List Compilation: Automatically populates the quickfix list with search results for easy access.
- PowerShell Script Wrapper: Bridges Vim and ripgrep through a custom PowerShell script.
- Vim9script
- PowerShell (Desktop or Core)
- ripgrep (rg.exe)
- repgrep (rgr.exe) (Optional)
- Ast-Grep (Optional)
Plug 'sevehub/vim9psgrep'
Set the PowerShell's version if > 5 (.vimrc):
let g:powershell_version = 7 ""legacy g:powershell_version = 7 #vim9script
Preset mapping:
<leader>gw
-- Locate the word under the cursor. ( grep word)<leader>gp
-- Open a popup to search files in the working directory tree. ( grep pattern)<leader>gr
-- Find and Replace ( grep replace)<leader>ga
-- Find code pattern ( grep ast)
Your search will compile results into the quickfix list for you to navigate through.
This repository is in the early stages of development and is not yet ready for general use. We are actively working on adding features and refining the project. Stay tuned for updates!
If you're interested in improving vim9psgrep, contributions are very welcome. Please submit pull requests or report any issues you encounter.
vim9psgrep is open-sourced under the MIT License. For more details, see the LICENSE file in the repository.