Skip to content

Commit

Permalink
Do not close autocomplete on space
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-r-m committed Feb 1, 2021
1 parent 20e584b commit 4c82f65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/QuickLinksPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ module.exports = {
completeSingle: false,
closeOnUnfocus: true,
async: true,
closeCharacters: /[()\[\]{};:>,]/
});
}, 10);
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function getNotes(prefix: string): Promise<any[]> {
const notes = await joplin.data.get(['search'], {
fields: ['id', 'title'],
limit: 11,
query: `title:${prefix}*`,
query: `title:${prefix.trimRight()}*`,
});
return notes.items;
}
Expand Down

0 comments on commit 4c82f65

Please sign in to comment.