cli tool: bypass max count if there is a filter
This commit is contained in:
parent
c48da6d245
commit
6122e20e3d
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"password": "",
|
||||
"url": "http://localhost:8000",
|
||||
"maxcount": 50,
|
||||
"maxcountifnofilter": 10,
|
||||
"command": "sublime_text.exe -w"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue