Zim

Comment 2 for bug 333204

Revision history for this message
Rui Nibau (ruinibau) wrote :

Hi jaap.

Here goes a patch that allow to choose a template when you create a new page in notebook. Not big code as everything was already available in Zim - just connecting the parts.

(1) Behavior
--------

- Templates are found in the default wiki data folder (data/templates/wiki) and in user folder (~/.local/share/zim/templates/wiki)
- Template selected by default in the combobox is the template for the namespace (if any) or 'New'.
- Selected template overwrites the default namespace template.

(2) To fix
--------

(a) Filtering available templates in combobox ? If you choose 'Calendar' template outside the calendar namespace, infos are missing

(3) To implement
------------

(a) template per namespace.

How to do that ? With a page property dialog, where the user can define template, icon, ... ?

(b) Templates stored in notebooks

You suggested to store those templates in [notebook]/_templates.

Could it be an hidden folder ([notebook]/.templates) ?