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

Allow user to save file templates #996

Closed
vkbo opened this issue Feb 16, 2022 · 2 comments · Fixed by #1688
Closed

Allow user to save file templates #996

vkbo opened this issue Feb 16, 2022 · 2 comments · Fixed by #1688
Assignees
Labels
enhancement Request: New feature or improvement next release Note: Features planned for next release

Comments

@vkbo
Copy link
Owner

vkbo commented Feb 16, 2022

This is not the same as #841, which concerns project templates, but they are related.

The user should be allowed to add a bunch of template files that can be loaded when a new file is created.

For myself the use case would be a character template. The template files could be saved either as a project template or as a general template in the app data folder. There should be a way to add custom fields to the template. In particular %label% and %tag%.

@vkbo vkbo added the enhancement Request: New feature or improvement label Feb 16, 2022
@vkbo vkbo added this to the Future Release milestone Feb 16, 2022
@vkbo vkbo self-assigned this Feb 16, 2022
@vkbo vkbo mentioned this issue Oct 1, 2022
@xahodo
Copy link

xahodo commented Jun 1, 2023

Yes, this would be useful. It would also really help me with my current project. When working on notes, I would really love to be able to import a template.

Templates regarding f.e. characters, would be different than templates for locations.

Allowing different templates to be loaded based on where they are created, would be great (saves clicks)! This would mean that creation of a project note in the "character" root folder would yield a different result than in the "objects" root folder.

Another option could be to have an "create note with template" item in the "+" drop-down menu.

Yet another option could be to simply add a menu item to import a template for current dialog, which would then open a file dialog where the user can select a template to load. However, this would be quite cumbersome to the user.

I do not understand what you mean with "custom fields". Could you elaborate?

@vkbo
Copy link
Owner Author

vkbo commented Jun 1, 2023

The idea is to add a new root folder for templates, which populates the "+" menu in the tree.

The fields are for instance:

### %label%

Bla bla bla

Where the document label (name) will be inserted where %label% is. You fill this out when you create a new item in the project.

I will probably use {Label} instead, to be consistent with the new syntax for variable inserting.

@vkbo vkbo changed the title Allow user to save file tempaltes Allow user to save file templates Sep 6, 2023
@vkbo vkbo mentioned this issue Feb 8, 2024
6 tasks
@vkbo vkbo linked a pull request Feb 8, 2024 that will close this issue
6 tasks
@vkbo vkbo closed this as completed Feb 8, 2024
@vkbo vkbo added the next release Note: Features planned for next release label Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request: New feature or improvement next release Note: Features planned for next release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants