Skip to content

nvim-telescope extension providing The Silver Searcher (Ag) functionality similar to that of fzf.vim

Notifications You must be signed in to change notification settings

srihari93/telescope-ag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

telescope-ag

nvim-telescope extension providing The Silver Searcher (Ag) functionality similar to that of fzf.vim.

Use case

While the live_grep built in function in Telescope is handy for most cases, it does not have the ability to filter through the search result files. When you know the exact text that you want to search, it is useful to be able to filter through only certain files that we care about e.g. "I need to search through all my files for a certain text that I know, from these resulting files, I do not want to see the results from my tests folder, or these following file patterns".

Installation

Install this extension using your favourite package manager.

Dependencies

Packer

use({ "kelly-lin/telescope-ag", requires = { { "nvim-telescope/telescope.nvim" } } })

Load the extension somewhere in your init.vim

telescope.load_extension("ag")

Useage

:Ag [PATTERN]: executes ag asynchronously for [PATTERN] in the current vim directory and populates a Telescope file_picker with the results which can then be filtered using the standard file picker filters.

Notes

This plugin will override the Ag command that fzf.vim sets.

About

nvim-telescope extension providing The Silver Searcher (Ag) functionality similar to that of fzf.vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 95.6%
  • Vim Script 4.4%