Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

New Note Tab Completion #27

Open
jebbster88 opened this issue Aug 26, 2018 · 2 comments
Open

New Note Tab Completion #27

jebbster88 opened this issue Aug 26, 2018 · 2 comments

Comments

@jebbster88
Copy link

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?

@patleeman
Copy link
Owner

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

@wolfhoundjesse
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants