Getting Started
Install
Section titled “Install”On Windows, in PowerShell:
irm https://raw.githubusercontent.com/lacodda/nooma/main/tools/install.ps1 | iexOn macOS and Linux:
curl -fsSL https://raw.githubusercontent.com/lacodda/nooma/main/tools/install.sh | shEither 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:
cargo install nooma --locked --git https://github.com/lacodda/noomaWhat works today
Section titled “What works today”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.
Search your folders
Section titled “Search your folders”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:
$ nooma source add ~/Notesadded /home/you/Notesrun `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:
$ nooma model fetch$ nooma indexmultilingual-e5-small: 1840 / 4210 passages · 9 min leftfind 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.
Index a repository
Section titled “Index a repository”Point nooma at a git repository. Any path inside it will do.
$ nooma repo indexindexed 47711d3c: 13 files, 159 symbolsstored at C:\Users\you\AppData\Local\lacodda\nooma\data\index\a1b2c3d4e5f60718293a4b5c6d7e8f90.jsonRun it again and only the files whose contents changed go back to the parser:
$ nooma repo indexnothing changed; reused 13 filesstored at C:\Users\you\AppData\Local\lacodda\nooma\data\index\a1b2c3d4e5f60718293a4b5c6d7e8f90.json
$ nooma repo indexparsed 1 files (1 changed); reused 12stored at C:\Users\you\AppData\Local\lacodda\nooma\data\index\a1b2c3d4e5f60718293a4b5c6d7e8f90.jsonThat 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.
Check whether the index is current
Section titled “Check whether the index is current”$ nooma repo statuscurrent at 47711d3c: 13 files, 159 symbolsstatus 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:
$ nooma repo statusindexed at 47711d3c+dirty with uncommitted edits: 13 files, 159 symbolsAfter a commit, the stored index is genuinely behind:
$ nooma repo statusstale: indexed at 47711d3c, checked out 9c2e8a1f — run `nooma repo index`List symbols
Section titled “List symbols”$ nooma repo symbols --name ledger --kind typesrc/ledger.rs:12 type Ledger1 symbols--under filters by path prefix - the repository path itself is the positional argument, so the filter needed a different name:
$ nooma repo symbols --under src/ledgersrc/ledger.rs:12 type Ledgersrc/ledger.rs:34 function Ledger::balance2 symbolsWith --json, one line of machine-readable output:
$ nooma repo symbols --name Ledger --json{"commit":"47711d3c...","symbols":[{"path":"src/ledger.rs","language":"rust","name":"Ledger","kind":"type","line":12,"parent":null}]}See which files import which
Section titled “See which files import which”$ nooma repo depssrc/ledger.rs -> src/entry.rssrc/main.rs -> src/ledger.rs2 files with resolved importsOnly 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.
Next steps
Section titled “Next steps”- Read the repository index concept: why the index is pinned to a commit, what a symbol kind means, and what
.nooma-ignoreis for. - See the full
nooma reporeference for every subcommand and flag.