Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to create single tag with multiple words seperated by delimter? #294

Closed
rootid opened this issue Mar 17, 2024 · 3 comments
Closed
Labels
documentation Improvements or additions to documentation

Comments

@rootid
Copy link

rootid commented Mar 17, 2024

Trying to add tag Productivity-Hacks but it always convert to productivityhacks

@jeanphilippegg
Copy link
Contributor

If you don't want your tags to be downcased or have "-" removed, you can disable sluggification of keywords like this :

(setq denote-file-name-slug-functions
      '((title . denote-sluggify-title)
        (keyword . identity)
        (signature . denote-sluggify-signature)))

This is available in the latest code and will be available in the next version of Denote.

With the above config, the only thing disallowed in keywords are underscores and "--", "__" or "==".

@protesilaos protesilaos added the documentation Improvements or additions to documentation label Mar 18, 2024
@protesilaos
Copy link
Owner

This is now covered at greater length in the manual: https://protesilaos.com/emacs/denote#h:d375c6d2-92c7-425f-9d9d-219ff47ed2a3

@protesilaos
Copy link
Owner

I have included this, because I think it is important:

Remember that deviating from the default file-naming scheme of Denote will make things harder to search in the future, as files can/will have permutations that create uncertainty. The sluggification scheme and concomitant restrictions we impose by default are there for a very good reason: they are the distillation of years of experience. Here we give you what you wish, but bear in mind it may not be what you need. You have been warned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants