ack Questions
3
Is there any way to get ack to search through a file whose filename starts with a . (e.g. .htaccess), without resorting to the --all or --unrestricted options?
I've tried adding the following to m...
3
Solved
I'm moving from Textmate to vim (with janus) and want to exclude some directories from Ack in particular, and also NERDTree.
The reason I want to do this is that Ack is useless (takes minutes to r...
4
Is it possible to ignore multiple directories in Ack, without repeating the flag?
e.g. I know the following works (i.e. setting multiple flags):
ack --ignore-dir=install --ignore-dir=php 'teststr...
Above asked 16/12, 2013 at 17:15
4
Solved
My goal is to find all "<?=" occurrences with ack. How can I do that?
ack "<?="
Doesn't work. Please tell me how can I fix escaping here?
2
Everytime I try add a type in ack seem to fail i.e add a type (log) in ack
ack --type-set log:ext:log
ack: No regular expression found.
or
ack --type-add log:ext:log
ack: No regular expressio...
Merylmes asked 24/7, 2014 at 9:2
2
Solved
I'm trying to search for lines containing 'foo' but these lines must not contain 'bar'. What's a good way to search with these parameters with ack?
I can do:
ack "foo" | grep -v "bar"
but it doe...
2
Solved
I'm using vim inside gnome-terminal in Ubuntu 12.04 and also in MacOS's terminal. I use the ack.vim plugin to perform project wide textual searches and it works fine but there's an uncomfortable an...
4
Solved
I'm using Ack (https://github.com/mileszs/ack.vim) with the --literal flag to search through projects in Vim. I noticed that whenever I search for a string with the % or # characters, the search do...
2
Solved
I have certain CSS files of fileName *-c.css and *-gen.css which I want to ignore from ack-grep searches.
I see that --type-set=TYPENAME=.extension does not accept regex filters like *-c.css, any ...
Hawkes asked 16/10, 2013 at 21:59
3
Solved
I basically just want to do ack foo *.citrus and have ack drill down and find the string 'foo' in all Citrus files in the current directory and below. The trouble is that this won't work if there a...
Speer asked 19/11, 2011 at 20:28
2
I am new to OS X and I am unable to figure out how to install ack. The instructions here didn't help, because the command "install" is failing. Please guide me proper commands.
So far, I have down...
Alright asked 2/7, 2013 at 20:43
5
Solved
Is there a way to obtain patterns in one file (a list of patterns) from another file using ack as the -f option in grep? I see there is an -f option in ack but it's different with the -f in grep.
...
4
Solved
I want to ack for the literal string: "$$" in a code base, but escaping the dollar sign like this:
ack \$\$
doesn't work.
1
Solved
4
Solved
Say I'm designing a tool that would save code snippets either in a PostgreSQL/MySQL database or on the file system. I want to search through these snippets. Using a search engine like Sphinx doesn'...
Malkamalkah asked 8/5, 2011 at 11:49
4
Solved
I would like to include files with a specific name -- not an extension -- in my ack search. Is this possible with ack?
If I use the -G option, this would exclude all other file types. (So I can't ...
Armallas asked 7/4, 2011 at 13:1
2
Solved
From the ack installation page (http://betterthangrep.com/install/) there is a one-liner installation with curl:
curl http://betterthangrep.com/ack-standalone > ~/bin/ack && chmod 0755 ...
Dishonor asked 14/10, 2012 at 18:51
3
Solved
Is there a way to limit the length of the line matched by ack? If ack matches, for example, a minified javascript file, the line it prints out can be very large. I still want it to show the highlig...
1
Solved
I am using Ack with MacVim and the Janus plugin.
Everytime I want to search for a string in my project that contains whitespaces, I need to escape these with \ or .
Is there a way to avoid this? I...
3
Solved
Is there a way to tell ack/grep to ignore minified Javascript? Those files have thousands of characters per line and screw up the search output.
2
Solved
I minify javascript files on the fly and produce a .min.js file beside the existing file. This is a problem though when using ack as it treats these as .js files and searches them littering my resu...
Madura asked 27/4, 2011 at 20:55
3
Solved
I'm new to MacVim and have installed Janus. I can't figure out how to search my project using Ack.vim.
For janus it says "Customizations: Janus rebinds command-shift-f () to bring up :Ack." But wh...
1
Solved
ack (the grep tool written in Perl) does not find a file that grep -r finds, and I cannot find the right options to get it to work. The following shows ack did not find the target string, which is ...
1
For me ack is essential kit (its aliased to a and I use it a million times a day). Mostly it has everything I need so I'm figuring that this behavior is covered and I just can't find it.
I'd love ...
Fluoro asked 29/2, 2012 at 23:38
3
Solved
I love the code search utility ack. It is smart enough to look through Makefiles, but doesn't know about the SConstruct and SConscript files that scons uses. How do I add those to the files that ac...
© 2022 - 2024 — McMap. All rights reserved.