Comments (6)
This worked (after creating /tmp/all
as a folder full of files to search):
datasette publish cloudrun \
--static all:/tmp/all \
--install datasette-ripgrep \
--service datasette-ripgrep \
--install datasette-ripgrep \
--plugin-secret datasette-ripgrep path /app/all \
--apt-get-install ripgrep
from datasette-ripgrep.
I grabbed all repos for simonw
with github-to-sqlite repos simonw.db simonw
and then did this:
for line in $(
sqlite-utils simonw.db "select full_name from repos where full_name like 'simonw/datasette%'" \
--csv --no-headers
)
do
git clone [email protected]:$line --depth 1
done
from datasette-ripgrep.
I'm going to turn this into a manually triggered Actions workflow in this repo.
from datasette-ripgrep.
https://ripgrep.datasette.io/-/ripgrep?pattern=pytest
from datasette-ripgrep.
The new demo isn't quite working right, I think the checked out code isn't being uploaded to the /app/all
directory as it should be.
from datasette-ripgrep.
Demo is back up, deployed via the workflow - and it survives a search for .*
https://ripgrep.datasette.io/-/ripgrep?pattern=%2C*
from datasette-ripgrep.
Related Issues (20)
- Ripgrep should be called ripgrep everywhere
- Try basic faceted search using "rg ... -l -c"
- Option to ignore case HOT 1
- Show context around search matches
- Use :target to highlight linked line, instead of JavaScript
- Expand config docs HOT 1
- Add this to the Datasette navigation menu
- Optionally use "ripgrep-all" HOT 1
- JSON API HOT 2
- Add various simonw/x-datasette repos to the demo HOT 1
- Add some of my powered-by-datasette sites to the demo HOT 1
- Use white-space: pre-wrap for the results HOT 1
- Truncate really long lines, but let user click to un-truncate them HOT 2
- Add syntax highlighting HOT 1
- Copy results as Markdown feature HOT 3
- Fix tests for latest Datasette
- Demo has gone stale HOT 3
- Show a gap between ranges of lines in search results HOT 3
- Only show navigation item if plugin is configured
- Missing `request` object when rendering template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datasette-ripgrep.