Save nbread
somewhere in your $PATH
and give it permissions with chmod +x nbread
Add the following alias to your shell:
alias rgnb="rg --pre nbread --pre-glob '*.ipynb' --type-add 'ipynb:*.ipynb' -tipynb"
Now you can run rgnb sqlite
to search for "sqlite"
in all your *.ipynb
files.