aapis / evertils

Generate Evernote notes from YML files
1 stars 0 forks source link

Use yaml config files for note type definitions #43

Closed aapis closed 5 years ago

aapis commented 5 years ago

Basically you would have a number of config files in your ~/.evertils/templates folder and evertils would parse the config and create them on demand. This would be a small change as far as generating from templates goes, but large in that you could create any "type" of note you wanted so long as you had a valid configuration for it.

For example, at a new job they have a new daily task called scrum. You want to record those things without having to modify evertils core.

# ~/.evertils/templates/type/scrum.yml

- type_name: Scrum
- format: Scrum For [%MONTH% %DAY% %DOW%]
- sections:
    header: nil
    body:
        - `Done`
        - `Next`
        - `Blockers`
    footer: nil
- tags:
    - day-%DOY%
    - month-%MONTH_NUM%
    - week-%WEEK_NUM%

Daily could be represented as follows.

# ~/.evertils/templates/type/daily.yml

- type_name: Daily
- format: Daily Log [%MONTH% %DAY% %DOW%]
- sections:
    header: nil
    body:
        - Triage
        - Meta:
            - Queue
            - Scrum
    footer: nil
- tags:
    - day-%DOY%
    - month-%MONTH_NUM%
    - week-%WEEK_NUM%

Missing types would throw TypeNotFoundException and exit.

aapis commented 5 years ago

Support for auto-linking notes should be possible but may not be a target for this version.