diff --git a/tools/nodeclient/app.js b/tools/nodeclient/app.js index aaeec02..54287c6 100644 --- a/tools/nodeclient/app.js +++ b/tools/nodeclient/app.js @@ -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 diff --git a/tools/nodeclient/settings.json b/tools/nodeclient/settings.json index fa4fd04..227734b 100644 --- a/tools/nodeclient/settings.json +++ b/tools/nodeclient/settings.json @@ -1,6 +1,6 @@ { "password": "", "url": "http://localhost:8000", - "maxcount": 50, + "maxcountifnofilter": 10, "command": "sublime_text.exe -w" }