EFLS / zetteldeft

A Zettelkasten system! Or rather, some functions on top of the emacs deft package.
https://efls.github.io/zetteldeft
GNU General Public License v3.0
394 stars 42 forks source link

Feature request: customize list syntax used by `zetteldeft-insert-list-links[-missing]` #85

Closed fitzgen closed 4 years ago

fitzgen commented 4 years ago

Right now it always produces lists with  - as the list syntax, e.g.:

 - [[id]] one
 - [[id]] two

I'm using zetteldeft with markdown files, and while the above works, it is (a) generally more idiomatic for markdown to either have zero or two spaces before the - and (b) I also happen to prefer to use * for lists although I've frequently seen both in the wild.

Would you be open to supporting a variable that customizes the list syntax? If so, I can try whipping up a PR.

EFLS commented 4 years ago

Hi, I sure am open to such improvements and customisation! PR more than welcome.

What would this look like? A customisable string?

fitzgen commented 4 years ago

I was imagining a variable that would be a list prefix string, and by default would be " -". Does that sound reasonable?

EFLS commented 4 years ago

Sounds perfect. I look forward to a PR. If you can, make changes in the .org document as well (don’t feel obliged to write documentation — I can add that later).