datasette-ripgrep
datasette-ripgrep copied to clipboard
Try basic faceted search using "rg ... -l -c"
The -l -c
options return just counts-per-file information. I could try using this to add very simple faceted search by filename.
(datasette-ripgrep) datasette % time rg plugin -l -c
datasette/app.py:36
datasette/templates/patterns.html:1
datasette/static/codemirror-5.57.0-sql.min.js:1
datasette/views/base.py:1
datasette/views/database.py:5
datasette/views/table.py:5
datasette/cli.py:20
datasette/publish/cloudrun.py:9
datasette/publish/common.py:9
datasette/url_builder.py:2
datasette/publish/heroku.py:20
datasette/utils/__init__.py:9
datasette/default_menu_links.py:2
datasette/hookspecs.py:2
datasette/plugins.py:23
test-metadata.json:12
docs/authentication.rst:19
docs/contributing.rst:11
fixtures-plugins/my_plugin_2.py:2
README.md:29
metadata.json:12
v1-of-link-to-blob.diff:1
docs/datasette-publish-cloudrun-help.txt:4
tests/fixtures.py:22
tests/test_config_dir.py:10
tests/test_permissions.py:1
tests/test_cli.py:10
tests/test_internals_urls.py:5
tests/test_cli_serve_get.py:10
tests/test_publish_cloudrun.py:4
tests/test_api.py:4
tests/test_docs.py:11
tests/test_html.py:1
tests/plugins/my_plugin_2.py:2
tests/plugins/my_plugin.py:9
tests/conftest.py:1
tests/test_publish_heroku.py:8
tests/test_plugins.py:62
tests/test_utils.py:3
fixtures-plugins/my_plugin.py:9
docs/datasette-package-help.txt:2
docs/installation.rst:12
docs/pages.rst:1
docs/datasette-publish-heroku-help.txt:4
docs/internals.rst:24
docs/publish.rst:8
docs/sql_queries.rst:2
docs/binary_data.rst:2
docs/ecosystem.rst:9
docs/plugin_hooks.rst:73
docs/introspection.rst:5
docs/datasette-serve-help.txt:1
docs/plugins.rst:36
docs/changelog.rst:113
docs/deploying.rst:2
docs/testing_plugins.rst:13
docs/getting_started.rst:1
docs/index.rst:5
docs/settings.rst:6
metadata.yaml:2
docs/writing_plugins.rst:59
test-plugins/my_plugin_2.py:2
test-plugins/my_plugin.py:9
plugins/apikey.py:2
rg plugin -l -c 0.01s user 0.04s system 160% cpu 0.034 total