Skip to content

Getting Started

On Windows, in PowerShell:

Terminal window
irm https://raw.githubusercontent.com/lacodda/nooma/main/tools/install.ps1 | iex

On macOS and Linux:

Terminal window
curl -fsSL https://raw.githubusercontent.com/lacodda/nooma/main/tools/install.sh | sh

Either one puts the nooma command of the latest release in your own account - %LOCALAPPDATA%\Programs\nooma on Windows, which it adds to your PATH; ~/.local/bin elsewhere - and needs no administrator. Run it again to update: on Windows a nooma that is running steps aside and carries on until it exits. There are builds for Windows and Linux on x86-64 and for macOS on Apple silicon.

Three variables change what the installers do:

Variable Set, it means
NOOMA_VERSION Install that release (vX.Y.Z) rather than the latest.
NOOMA_INSTALL_DIR Put the program in this directory instead.
NOOMA_NO_PATH Leave the PATH alone, and say nothing about it.

The window comes as an installer on the release page: nooma_<version>_x64-setup.exe on Windows, a .deb or .AppImage on Linux, a .dmg on macOS. It is not signed yet, so Windows asks before the first run.

On any other machine, build it from source - it takes Rust and a C++ compiler:

Terminal window
cargo install nooma --locked --git https://github.com/lacodda/nooma

nooma searches folders of markdown, text, PDF, Word documents and EPUB books - and on Windows the text in screenshots, photos of pages and scans - by the words in them and by what they mean, from a window or from the shell, and indexes git repositories for rigger. Both halves answer as one list, ranked together; see One list from two halves.

In the window, Add folder picks one and reads it; after that the field answers as you type, with the exact matches first and the matches by meaning under them, and the row selected is read beside the list in its document - see Reading what was found. ↑ ↓ move through both, Enter opens one at the place it was found, Ctrl+Enter shows it in its folder, Ctrl+Shift+C copies it as a quote, and Ctrl+K puts the cursor back in the field from anywhere. While the window is open it watches the folders: a note saved is found a moment later - see Keeping up with the folders. When a file could not be read - under a password, too large - the status line counts it, and the count opens the list of what and why.

Search by meaning needs its model, about half a gigabyte: the first time, the window offers to download it - the one thing nooma ever downloads, and nothing of yours is sent. Then it reads your documents for meaning in the background; the status line counts the passages and the time left, and search by meaning answers over what is read so far. Paste a paragraph into the field and the window finds the documents that say the same.

From the shell, add a folder and search:

Terminal window
$ nooma source add ~/Notes
added /home/you/Notes
run `nooma index` to read it
$ nooma find "warranty claim"
Appliance receipts · March
/home/you/Notes/home/receipts.md:5
Filed the warranty claim for the espresso machine…

find reads whatever changed since the last time before it answers, so there is no separate step to remember. nooma index --watch keeps the index up to date as files change, the way the window does, and nooma health says what could not be read, and why.

For the half by meaning, fetch the model once and let index read the folder with it - the first time, an hour or so for a few thousand notes; after that, seconds for what changed:

Terminal window
$ nooma model fetch
$ nooma index
multilingual-e5-small: 1840 / 4210 passages · 9 min left

find then answers from both halves in one list, and nooma similar takes a passage - a file, or - for standard input - and finds what else says the same. The window and the shell share one library and one set of vectors: a folder added in one is searched by the other. Everything - the folders, the options, the JSON each command prints - is on the reference page.

Point nooma at a git repository. Any path inside it will do.

Terminal window
$ nooma repo index
indexed 47711d3c: 13 files, 159 symbols
stored at C:\Users\you\AppData\Local\lacodda\nooma\data\index\a1b2c3d4e5f60718293a4b5c6d7e8f90.json

Run it again and only the files whose contents changed go back to the parser:

Terminal window
$ nooma repo index
nothing changed; reused 13 files
stored at C:\Users\you\AppData\Local\lacodda\nooma\data\index\a1b2c3d4e5f60718293a4b5c6d7e8f90.json
$ nooma repo index
parsed 1 files (1 changed); reused 12
stored at C:\Users\you\AppData\Local\lacodda\nooma\data\index\a1b2c3d4e5f60718293a4b5c6d7e8f90.json

That is what makes the commands below cheap to run: each of them brings the index up to date before answering, and says on stderr what that cost.

Terminal window
$ nooma repo status
current at 47711d3c: 13 files, 159 symbols

status is the one command that never changes what it looks at. With edits in the tree it says so, without prescribing a rebuild that would change nothing:

Terminal window
$ nooma repo status
indexed at 47711d3c+dirty with uncommitted edits: 13 files, 159 symbols

After a commit, the stored index is genuinely behind:

Terminal window
$ nooma repo status
stale: indexed at 47711d3c, checked out 9c2e8a1f — run `nooma repo index`
Terminal window
$ nooma repo symbols --name ledger --kind type
src/ledger.rs:12 type Ledger
1 symbols

--under filters by path prefix - the repository path itself is the positional argument, so the filter needed a different name:

Terminal window
$ nooma repo symbols --under src/ledger
src/ledger.rs:12 type Ledger
src/ledger.rs:34 function Ledger::balance
2 symbols

With --json, one line of machine-readable output:

Terminal window
$ nooma repo symbols --name Ledger --json
{"commit":"47711d3c...","symbols":[{"path":"src/ledger.rs","language":"rust","name":"Ledger","kind":"type","line":12,"parent":null}]}
Terminal window
$ nooma repo deps
src/ledger.rs
-> src/entry.rs
src/main.rs
-> src/ledger.rs
2 files with resolved imports

Only imports that resolve to another file in this repository become edges here. An import of std::fmt or a package from outside the repository stays a fact on the file’s own record, not a graph edge - see why imports resolve the way they do.

  • Read the repository index concept: why the index is pinned to a commit, what a symbol kind means, and what .nooma-ignore is for.
  • See the full nooma repo reference for every subcommand and flag.