cli tool: bypass max count if there is a filter

This commit is contained in:
quenousimporte 2023-08-25 17:57:20 +02:00
parent c48da6d245
commit 6122e20e3d
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ axios.post(`${settings.url}/handler.php`,
.every( (note, i) =>
{
console.log(`[${i}] ${note.title}`)
return i < settings.maxcount;
return Boolean(filter) || i < settings.maxcountifnofilter;
});
// todo: open if only one match. quit if no match

View File

@ -1,6 +1,6 @@
{
"password": "",
"url": "http://localhost:8000",
"maxcount": 50,
"maxcountifnofilter": 10,
"command": "sublime_text.exe -w"
}