ag Questions
2
Solved
I have defined a function to search for filename (<C-P>), and a string (<C-F>) from git root directory asynchronously with fzf.vim plugin (I also have Ag installed). However, I can not ...
4
Solved
I'm attempting to find the number of matches for a given string across a large project. Currently, to do this with ag I am using the following command:
$ echo 0$(ag -c searchterm | sed -e "s/^.*:...
Paolapaolina asked 13/8, 2015 at 18:28
10
Solved
According to the docs, it should be
--ignore PATTERN
I have a file containing tags, named "tags". I have tried the following, each of them still searches through the tag file..
ag -Qt --ignore ...
Deil asked 10/4, 2014 at 21:26
3
Solved
Right now I am using:
ag sessions --color|cut -b1-130
But this will cause color artifacts if the search match is cut bu the cut command.
Silversearcher has this in the docs:
--print-long-lin...
Copestone asked 29/12, 2016 at 13:16
3
Solved
I am new to vim. I read online that one of the best fuzzy finder in vim is fzf. I have started using it. But whenever I write the command :Ag I get ag is not found. I don't know what it means and I...
4
Solved
I want to search multiple patterns in a directory containing recursive directories and files.
I know command for grep which is as follows
grep -e '(pattern1)|(pattern2)'
or
grep -r -E 'string1...
1
I'm trying through Windows terminal to decompress a large number of compressed files with zstd v1.4.0 and then 'ag' search over :
zstd -dc -r . | ag -z -i "term"
It gives me the following error w...
1
I have large zstd-compressed text files.
How can I run fast search over them ?
Can I use AG (The Silver Searcher) or something similar ?
I've tried AG but it doesn't work, I have a "failed to ...
1
Solved
My Problem
I'm searching for Application(service) in my files using ag. Since ag treats strings as regular expression patterns, I have to escape the parens and use:
ag 'Application\(service\)'
...
6
Using Silver Searcher, how can I search for:
(non-binary) files with a word or pattern AND
all filenames, with a word or pattern including filenames of binary files.
Other preferences: would like...
Silverpoint asked 10/9, 2013 at 7:49
1
Solved
Heck I just can't remember ... I recently had a cool way to use ag with sed to do find and replace. The gist was simple, something like:
ag foo -l | ... magic here ... sed 's/foo/bar/g'
That doe...
2
Solved
I use ag to search through my notes. My notes are written down in Markdown files and Markdown cells contained within Jupyter notebooks.
I can search the Markdown files conveniently with ag --markd...
Infertile asked 9/5, 2018 at 14:11
3
Solved
Does silver_searcher support specifying multiple search expressions something like -e in grep?
I could not find any option in the document/help.
Materialize asked 11/1, 2017 at 15:27
2
Solved
using The silver searcher how can I ignore multiple directories?
I tried ag foo --ignore-dir dir1,dir2 but it doesn't work.
Goulet asked 13/4, 2016 at 14:17
1
Solved
I have a folder of aliases. These are bash files. Some are sensitive, so I keep them in a .gitignore.
~/.bash_utilities
bash_a.sh
bash_b.sh
.gitignore
.gitignore:
bash_b.sh
The problem is t...
2
Solved
I use ag with ctrlp, as suggested here:
if executable('ag')
set grepprg=ag\ --nogroup\ --nocolor
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_use_caching = 0
else
let g:ct...
1
I have found a lot of pages with config examples such as:
let g:unite_source_grep_command = 'ag'
let g:unite_source_grep_default_opts =
\ '--line-numbers --nocolor --nogroup --hidden --ignore '
l...
1
Solved
I recently switched to vim, and learnt that you can execute searching using AG.
I always do
:Ag foo
And, in the quicklist window
:cdo s/foo/bar/g |update
However,it opens all the files in bu...
1
Solved
I love ag :: the_silver_searcher but I am wondering how can I perform a search non-recursively.
Sometimes I want to search only inside files from my home directory but without looking in subdirec...
Musgrave asked 20/12, 2016 at 9:47
2
Solved
I have recently begun to use the 'ag' command instead of 'ack'.
Ag is much faster, but does not seem to have a file (such as .ackrc) where one could add configuration options.
For example, I alwa...
Recension asked 2/12, 2014 at 22:51
1
Solved
I'm using ag to search a git repo. It doesn't find matches under my node_modules subdirectory. Why not, and how can I control this behavior?
Italianize asked 25/9, 2015 at 21:2
1
Solved
After installing Ag.vim I've had a frequent need to copy a search from * or / into the command line to search across all files in a codebase.
Example use case:
I find a string of text user_profi...
Glassy asked 15/1, 2015 at 17:42
1
Solved
I am using Silver Searcher to find information in my Calibre library which, by default uses long directory and filenames that are a bit redundant. Example search:
chris@ODYSSEUS:~/db/ebooks/paper-...
Patience asked 27/11, 2014 at 0:57
1
© 2022 - 2024 — McMap. All rights reserved.