{"about":"Grep the current Evil Engine source release. Every line that matches comes back with its file, line number and the character ranges that matched.","endpoint":"/source/api/search","parameters":{"q":"What to find, matched line by line. Plain text matches literally and ignores case. Write /pattern/ for a JavaScript regex, and add path:GLOB, -path:GLOB, case:yes or in:FOLDER anywhere in it.","regex":"1 to read q as a JavaScript regex","case":"1 to match case","in":"Only files under this folder, such as Libraries/EvilEngine.Mounts","path":"Only files matching this glob (repeatable). A glob without a slash matches file names at any depth, one with a slash matches the whole path, and text with no * or ? matches anywhere in the path.","exclude":"Skip files matching this glob (repeatable)","limit":"Files per page, 1 to 100, 20 by default","context":"Lines of context around each match, 0 to 5","cursor":"Resume from the next value of an earlier page","format":"json (the default) or text, for path:line:text lines like grep -n"},"examples":["/source/api/search?q=MountManager","/source/api/search?q=/class\\s+\\w+Mount\\b/&path=*.cs","/source/api/search?q=TODO&in=Libraries&context=2&format=text","/source/api/search?q=vfs+path:*.cs+-path:Tests/**"],"results":"files lists up to 20 matching lines per file, with count giving every line that matched. paths lists file paths that match q itself, on the first page only. A page stops at limit files or when its scan budget runs out, so keep following next until it's null.","raw":"/source/raw/{path} gives a file's bytes and /source/blob/{path}#L{line} its page"}