Use this file to discover all available pages before exploring further.
nb treats every file as plain text, which means searches are instant and exhaustive. Under the hood, nb search is powered by git grep — one of the fastest grep implementations available — and extends it with multi-term AND/OR/NOT logic, hashtag awareness, type filtering, and cross-notebook scoping. Bookmark cached page content, todo descriptions, code snippets, and notes all live in the same index.
Multiple arguments are treated as an AND query — all terms must be present somewhere in the document (not necessarily on the same line):
# find items containing both "example" AND "demo"nb search "example" "demo"# equivalent using --andnb search "example" --and "demo"# search for three tags that all must be presentnb q "#example" "#demo" "#sample"nb q "#example" --and "#demo" --and "#sample"
Exclude items that match a term with --not <query>:
# find items matching "Example" but NOT "Sample"nb search "Example" --not "Sample"# combine: must match "Example" AND "Sample", but NOT "Demo"nb search "Example" --and "Sample" --not "Demo"
Scoping: Current Notebook, Specific Notebook, All Notebooks
# search the current notebook (default)nb search "example query"# search a specific notebook using the colon prefixnb search example: "example query"nb q example: "example query"# search a specific foldernb search demo/ "example query"# search ALL unarchived notebooksnb search "example query" --allnb q -a "example query"# search all notebooks and list matches only (no content preview)nb search "example query" --all --listnb q -la "example query"