Create a new row in a base view

Use case or problem

I’ve a lot of notes classified using frontmatter properties to show them in table using data view and DB folder plugin.

The latter shows all notes in a folder, or following some rules, in a table and it allows the user to select a template to be used when creating a new row (i.e. a new note). In this way, the new entry is quickly available into the table and frontmatter properties can be modified without leaving the table view.

For sure, it you want to modify the content you have to leave the view but for some data that I’m collecting it speeds up a lot note and folder creation because you could ask to plugin to organize note using a “group file by” rule in order to create a proper nested structure.

Proposed Solution

I would suggest to add an option, and a button, to configure for each base a template to be use when creating a file.

The base view could have just a button Add Row that creates the new file, asking here for a template to be used or not.

If the template is configured for the base it will be automatically selected.

Currently, to create a new file from a base view, I could use a command but it creates a ln empty file, leaving the view, and after that I would apply a template and coming back to the view itself.

Current workaround (optional)

I’m using BDFolder plugin but the table view is slow and it is not easy to use on mobile. Since the introduction of Base, I’m using bases to replace it has for reading and editing created file but I still relies to DB folder for a quick creation.

1 Like

This is a great feature request and I have this same request.

There are some other design considerations that also need to be made:

  1. Should the template be optional? Yes, I think it should.
  2. How would this all be represented in the .base format? Perhaps there would be a new (optional) template-path key.
  3. We also need to tell the base where to save the newly created file. Perhaps there would be something like a new key named new-file-path in the .base format.