VSNotes icon indicating copy to clipboard operation
VSNotes copied to clipboard

New Note Tab Completion

Open jebbster88 opened this issue 7 years ago • 2 comments

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?

jebbster88 avatar Aug 26 '18 09:08 jebbster88

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

patleeman avatar Sep 05 '18 13:09 patleeman

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']
}

wolfhoundjesse avatar Jan 30 '19 05:01 wolfhoundjesse