-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathfeatures.ttml
71 lines (63 loc) · 2.29 KB
/
features.ttml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[% WRAPPER wrapper/page.ttml title="Feature comparison of ack, ag, git-grep, grep and ripgrep" %]
[% MACRO print_cell( section_type, str ) BLOCK %]
[% IF section_type == 'options' %]
[% IF str != '' %]
<span class="cell">✔</span>
[% END %]
[% ELSE %]
[% IF str.match( '^https' ) %]
<span class="cell"><a href="[% str %]">Link</a></span>
[% ELSE %]
[% str = str | html_entity %]
[% str = str.replace( '^yes', '✔' ) %]
<span class="cell">[% str %]</span>
[% END %]
[% END %]
[% END %]
<div class="content">
<h1>Feature comparison of ack, ag, git-grep, GNU grep and ripgrep</h1>
<p>
There are many greplike tools available to choose from. ripgrep is
currently the fastest, which folks seem to focus on, but they have
different features. Here's a chart to help you see which tools can do
what.
</p>
<p>
If you find this chart useful, consider making one for the projects you run, even if it includes "competing" projects.
<a href="http://blog.petdance.com/2018/01/02/the-best-open-source-project-for-someone-might-not-be-yours-and-thats-ok/">The best
project for someone might not be your project, and that's OK</a>.
</p>
<p>
If you have updates to the chart, please
<a href="https://github.com/beyondgrep/website/issues/">submit as a GitHub issue</a>.
</p>
<table>
[% FOR section IN sections %]
<tr>
<th>
[% section.section | html_entity %]
</th>
<th width="14%">ack</th>
<th width="14%">ag</th>
<th width="14%">git-grep</th>
<th width="14%">GNU grep</th>
<th width="14%">rg</th>
</tr>
[% FOR ability IN section.abilities %]
[% hows = ability.how %]
[% IF hows %]
<tr>
<td>[% ability.what | html_entity %]</td>
[% FOR how IN hows %]
<td>
[% IF how != '' %]
[% print_cell( section.type, how ) %]
[% END %]
</td>
[% END %]
</tr>
[% END %]
[% END %]
[% END %]
</table>
[% END %]