Skip to main content

Questions tagged [ag]

For questions on `ag` (a.k.a. The Silver Searcher), a RegEx-based code-searching tool optimized for speed.

0 votes
1 answer
111 views

I recently installed silversearcher-ag with sudo and uninstalled it as it required sudo to run the command every single time. The command I used to install and uninstall this package respectively: # ...
stucash's user avatar
  • 111
1 vote
2 answers
262 views

I don't want ag to search files larger than 2Mio. I can't find anything like a --file-size flag to the ag command, but is there any way to tell it that? I'm getting lots of ERR: Skipping foo.bar: ...
Jason Hunter's user avatar
1 vote
0 answers
370 views

This will be easier to explain via example. Here are my input files: file1: x x a b c x x file2: x x c b a x x file3: x x x x a b c x x x x file4: x x x x c b a x x x x file5: x x a b x x file6: ...
Daniel Kaplan's user avatar
1 vote
1 answer
283 views

I'm using ag v 2.2. How do I configure ag so that it will search for files beginning with a "." in addition to all other files? I'm noticing I have a file like so $ cat client/.env....
Dave's user avatar
  • 2,808
0 votes
0 answers
144 views

I define ag as bash function, to make usage relatively transparent ag() { [ $# -gt 0 ] && vim -c silent\ SyntasticToggleMode -c copen -q <(/usr/bin/ag --silent --vimgrep --nogroup "$@&...
lkraav's user avatar
  • 1,201
1 vote
0 answers
152 views

I'm using Silver Searcher, ag, version 2.1.0 on Ubuntu. I'm trying to search for the string aStar in Haskell files in the current directory tree. (The files are text files with extension .hs.) The ...
Neil Smith's user avatar
0 votes
0 answers
256 views

Give an example file with the content: // find me val ignore me = "" // I should not be found // find me // find me I want to find all the lines with find me using ag silversearcher. Basically,...
k0pernikus's user avatar
  • 16.7k
0 votes
3 answers
68 views

Say for example I have a file with contents like this: # TODO: Optimize this. alias bash='start bash' # FIXME: Just fix this. alias fix='there is something wrong with this What I want is if I search ...
cevhyruz's user avatar
  • 477
19 votes
1 answer
13k views

Are these related? Which is faster? Can either be limited to directory-names? https://github.com/BurntSushi/ripgrep https://github.com/ggreer/the_silver_searcher
johny why's user avatar
  • 381
0 votes
1 answer
1k views

With two files with echo 'example.com/call_me?param' > file1.txt echo 'example.com/call_me_maybe?param' >> file1.txt echo 'example.com/call_me?' >> file1.txt echo 'example.com/call_me?...
PockPock's user avatar
  • 103
1 vote
0 answers
57 views

Given a directory structure such as: dev/project1/assets/** dev/project2/assets/** dev/project3/assets/** Is it possible to search, from within the dev directory all assets directories only. Given ...
Kris's user avatar
  • 255
0 votes
1 answer
439 views

I am trying to search text in a directory and it turned out that the following syntaxes do not return any result ack -i "0xabcdef" ./ ack -i "0xabcdef" ack -i "0xabcdef" . while the following ...
user2065276's user avatar
16 votes
4 answers
13k views

There is an option --ignore which allows specifying files to ignore. At the moment I only managed to ignore multiple files by doing --ignore file1 --ignore file2....... Trying to use --ignore "*...
T.Chmelevskij's user avatar
71 votes
2 answers
45k views

I'm using ag (The Silver Searcher) version 0.31.0. I can easily look for a string in a bunch of files using: localhost:workspace davea$ ag 'ftp' . But what if I only want to scan files with certain ...
Dave's user avatar
  • 2,808
6 votes
2 answers
921 views

I am thinking methods to make the search faster and/or better which principally uses fgrep or ag. Code which searches the word and case-insensitively at $HOME, and redirects a list of matches to vim ...
Léo Léopold Hertz 준영's user avatar

15 30 50 per page