Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open note command #888

Closed
riccardoferretti opened this issue Dec 23, 2021 · 1 comment
Closed

Open note command #888

riccardoferretti opened this issue Dec 23, 2021 · 1 comment
Labels
discussion enhancement New feature or request

Comments

@riccardoferretti
Copy link
Collaborator

"Open note" command as building block

I would like to add a generic "Open note" command.
The regular behavior of this command would be to:

  • show a list of all the notes as a quick pick list, where the user can then select what note they want to open
  • if only one note is available, open the note directly.

The command would also support the following params:

  • filterBy
    Notes to be displayed in the list can be filtered by different attributes, such as path, type, properties, connections, ... basically the metadata we have available in the workspace/resource and graph
  • sortBy
    The filtered notes will then can be sorted by various attributes, defaulting to note title

The above params would allow this command to be a building block for custom workflows, to be defined:

Possible use cases

  • Open a note of a specific type
  • Open an orphan note
  • Open a weekly note (whether using the type, or path pattern)

Other thoughts

I wonder whether this can/should also allow for the creation of the note if it doesn't exist, in which case we could also provide a reference template to use to create such note.
This would allow even more powerful workflows, such as:

  • daily note would become an instance of this pattern
  • we could create a weekly note as an instance of this pattern
  • same for anything that is template based (e.g. meeting note, ...)
@riccardoferretti riccardoferretti added discussion enhancement New feature or request labels Dec 23, 2021
@riccardoferretti
Copy link
Collaborator Author

The filtering has been implemented in 0.21.0. The sorting is to be considered out of scope for now, unless future requests are made for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant