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

Feature request: Auto populate "Create new document" menu with text files found in ~/Templates/ #279

Open
sebastiaanfranken opened this issue Jul 5, 2022 · 4 comments
Labels
enhancement New feature or request needs design

Comments

@sebastiaanfranken
Copy link

sebastiaanfranken commented Jul 5, 2022

If you launch Setzer without any documents the "Create a new document" menu should/could be auto populated with files in the users' Templates directory. The menu could have 3 items:

  • New LaTeX document
  • New BibTeX document
  • New document from template

The "New document from template" could/should be a submenu/popout menu if the users has a lot of template tex files.
This might make it easier to work with template latex documents (I do that a lot, hence the question/feature request).

Would this be:

  1. Possible
  2. Wanted?
@cvfosammmm
Copy link
Owner

Template support would be wanted, yes. There would have to be a UI for template creation as well.

Is there a common directory for templates?

@cvfosammmm cvfosammmm added enhancement New feature or request needs design labels Jul 5, 2022
@sebastiaanfranken
Copy link
Author

sebastiaanfranken commented Jul 5, 2022

Is there a common directory for templates?

On Linux it's ~/Templates, or xdg-user-dir TEMPLATES

Template support would be wanted, yes. There would have to be a UI for template creation as well.

I hadn't thought of template creation yet. I place tex templates I prepared myself in Setzer or vim in the templates folder once I'm done with them and I adjusted them (no text, no headings, etc).

I think the main project creation dialog can be reused for that, though

@evamvid
Copy link
Contributor

evamvid commented Mar 10, 2023

we might be thinking about different types of templates, but don't latex templates usually need to be in the texmf tree so that the interpreter can find them?

@sebastiaanfranken
Copy link
Author

we might be thinking about different types of templates, but don't latex templates usually need to be in the texmf tree so that the interpreter can find them?

Yes, we're thinking about different types of templates. Linux has a feature where you can put anything in the ~/Templates folder. If you right click in your file manager you get a menu that gets populated with the stuff in said folder.

You can also use that folder as a source (as @cvfosammmm asked) in other applications.

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

No branches or pull requests

3 participants