mirror of
https://github.com/laurent22/joplin.git
synced 2025-04-01 21:24:45 +02:00
Implement auto completaion for <item> usage
This commit is contained in:
parent
c62a24a9cb
commit
7bccf7f65d
@ -82,6 +82,12 @@ async function handleAutocompletionPromise(line) {
|
|||||||
l.push(...folders.map((n) => n.title));
|
l.push(...folders.map((n) => n.title));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (argName == 'item') {
|
||||||
|
const notes = await Note.previews(app().currentFolder().id, { titlePattern: next + '*' });
|
||||||
|
const folders = await Folder.search({ titlePattern: next + '*' });
|
||||||
|
l.push(...notes.map((n) => n.title), folders.map((n) => n.title));
|
||||||
|
}
|
||||||
|
|
||||||
if (argName == 'tag') {
|
if (argName == 'tag') {
|
||||||
let tags = await Tag.search({ titlePattern: next + '*' });
|
let tags = await Tag.search({ titlePattern: next + '*' });
|
||||||
l.push(...tags.map((n) => n.title));
|
l.push(...tags.map((n) => n.title));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user