Trying to add search to my app, and stumbled onto https://github.com/BurntSushi/ripgrep that works well on the shell, but wondering how best to run it from tauri, and take the output (attached screenshot) and display on the UI.
Tried using the Command API like
const cmd = new Command("query-search", [
"-i",
"/Users/folder",
]);
and tauri.conf looks like this
"all": true,
"scope": [
{
"name": "query-search",
"cmd": "rg",
"args": ["-i", { "validator": "\\S+" }]
}
]
},
But unsure how to get the results