{% extends "base.html" %} {% block title %}ripgrep{% if pattern %}: {{ pattern }}{% endif %}{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

ripgrep

Options:

For example *.py or **/templates/**/*.html or datasette/** or !setup.py

{% if globs|length > 1 %}

Additional patterns

{% for glob in globs[1:] %}

{% endfor %} {% endif %}
{% if time_limit_hit %}

Time limit exceeded.

{% endif %} {% set ns = namespace(ended=true) %} {% for result in results %} {% if result.type == "begin" %}

{{ fix_path(result.data.path.text) }}

{% set ns.ended = false %} {% endif %} {% if result.type in ("match", "context") %}
 1  %} gap{% endif %}">{{ "%-4s" | format(result.data.line_number) }}{{ result.data.lines.text }}
{% set ns.prev_line = result.data.line_number %}{% endif %} {% if result.type == "end" %}{% set ns.ended = true %}
{% endif %} {% endfor %} {% if not ns.ended %} {% endif %} {% endblock %}