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

Which special characters can be used to distinguish special tags? #121

Closed buhtz closed 2 years ago

buhtz commented 2 years ago

I want to be more specific with some tags. It is like I want to tag the tags. Or someone would call it a tag hierarchie.

e.g. This are for zettel connection two zettels. #:typ:con

e.g. This are for zettel about bibligraphic contexts. #:typ:bib

But with : as first char the tags are not listed with C-c d T. I tried #typ:con and #typ.con. Then only #typ appears in the list. A - works as separator. But I would like to have something more "special" ;)

EFLS commented 2 years ago

So the request is to be able to use - in the tags? Have you tried modifying the zetteldeft-tag-regex to recognize such tags?

EDIT: Whoops, should have been "to use : in tags."

buhtz commented 2 years ago

Not - because it works fine. But I want something more special like : or ::. I do not know about zetteldeft-tag-regex. It's default value is "[#@][[:alnum:]_-]+".

No matter if I know how to use regex or not. As a emacs/zetteldeft novice I would prefer not to modify any defaults.

To be more specific with my request:

EFLS commented 2 years ago

Which chars are supported?

All the characters in the regexp. Tags should start with # or @ and then use normal text characters, a _ or a -. See also section 2.3 in the literate code at https://www.eliasstorms.net/zetteldeft/zetteldeft.html

Which "special" character would you recommend for such a use case?

I'd use a _ as a first character of your tag -- unless you want to change the zetteldeft-regex, then you can use whatever you configure.