zwpaper / obsidian-progressbar

Code block plugin for Obsidian generating a progress bar
Apache License 2.0
42 stars 5 forks source link

Name template #4

Closed tguichaoua closed 1 year ago

tguichaoua commented 1 year ago

Allow the name parameter to accept template for better customization.

Possible value that can be inserted in the name :

Note: I use $ as prefix, but it will probably depend on the template engine used.

Examples :

- name: My super progress bar [$value / $max]
- value: 10
- max: 100
My super progress bar [10 / 100]
- name: My tasks ($percentage %)
- value: 10
- max: 50
My tasks (20 %)
zwpaper commented 1 year ago

sound great! let me work on it this weekend.