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

Option to apply classes based on tags automatically #35

Open
Sanqui opened this issue Jul 27, 2022 · 2 comments
Open

Option to apply classes based on tags automatically #35

Sanqui opened this issue Jul 27, 2022 · 2 comments
Labels
question Further information is requested

Comments

@Sanqui
Copy link

Sanqui commented Jul 27, 2022

Hey, love the plugin, but hate the busywork! I would love it if whenever I add any tag, like #test, to a note, it gets corresponding class like tag-test. Otherwise I have to do it manually for 10s of tags :(

@nathonius
Copy link
Owner

@Sanqui sorry for the (very) late reply, I've finally got the time and motivation to work on this plugin some more.

Can you expand on this? What exactly is your usecase here? I'm trying to understand how this fits with the purpose of this plugin. The idea here is that CSS classes can be applied automatically based on a specific tag or path; I feel like another plugin might serve your usecase better, something that adds a CSS class to the yaml frontmatter whenever a tag is added, or something along those lines.

@nathonius nathonius added the question Further information is requested label Feb 19, 2023
@Sanqui
Copy link
Author

Sanqui commented Feb 19, 2023

The idea is, if CSS classes are useful for styling, right? So if I want to do something like, change the background of my daily notes, I would need to give them a class. And my daily notes already have a #daily tag, so why should I jump through the hoop of specifying "yes, I want pages tagged #daily to have the class daily"? I guess I'm not sure why you would want to ever apply a different class, that would just add a layer of confusion in my opinion. So currently I have #person set to have the tag-person class, #project to have #tag-project, task to have tag-class, etc. But this is a lot of manual work that felt pointless But maybe you have a different idea with this plugin, in which case I should make my own. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants