New Note Tab Completion
I generally have 3 sets of notes, which exist as sub folders of the notes directory.
- Work Specific - work specific notes I dont want to sync outside of the domain
- Personal - personal notes that live only on my personal machine
- Generic - Git repo for syncing all my generic tech notes
Any note I create will exist in one of those 3 sub folders, so new notes will usually take the form Generic/Mynote.md or Work/SomeProject.md
It would be great if tab completion could be used to complete the folder names. E.g. W<tab>MyNote.md would produce Work/MyNote.md
Is this possible at all?
It might be possible with window.createInputBox instead of window.showInputBox but it will take a bunch of experimentation on my part. I will look into it. I like the idea for tab completion, and I'll see if it's possible.
https://code.visualstudio.com/docs/extensionAPI/vscode-api#InputBox
If we recurse the default directory and create a list of subdirectories as described here, performance will suffer greatly for users with a large number of subdirectories.
A compromise might be to manually configure the list for the QuickPick:
{
"vsnotes.include: ['**/Personal', '**/Generic']
}