Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try basic faceted search using "rg ... -l -c" #11

Open
simonw opened this issue Nov 28, 2020 · 0 comments
Open

Try basic faceted search using "rg ... -l -c" #11

simonw opened this issue Nov 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Nov 28, 2020

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
@simonw simonw added the enhancement New feature or request label Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant