org-brain
org-brain copied to clipboard
Add org-brain category color feature
Hello:
I want to let different entries have different color, so I add org-brain group (maybe other name) feature. any suggestion?
I could see a use-case for this if you want different faces for different topics or similar. Maybe though instead of creating a new org-brain-group
thing we could use the built-in org-mode
category feature? org-brain
already supports adding icons depending on category.
Maybe though instead of creating a new org-brain-group thing we could use the built-in org-mode category feature
The category has a problem, it is hard code inheritance, can it be controled by org-use-property-inheritance ?
Org mode has a few properties for which inheritance is hard-coded, at least for the special applications for which they are used:
CATEGORY
For agenda view, a category set through a ‘CATEGORY’ property applies to the entire subtree.
I don't know, but isn't inheritance usually what you want in this case? To me it seems a bit confusing if there's one thing called a "category" and another called a "group". I the only purpose of the group feature is to add colors, then maybe it should be named accordingly (like "color props" or something similar).
to me it seems a bit confusing if there's one thing called a "category" and another called a "group".
the name "group" is a temp name, for I do not find a better name at the moment :-)
but isn't inheritance usually what you want in this case?
I will try to test CATEGORY property.
I have found a way to disable category's inheritance, I will rename group to category
@Kungsgeten I have rename group to category, please review again, thanks.
@Kungsgeten ping
Two more ideas:
- obvz is using entries starting with "cls_" as category entries which are only used for selection, thus are not used in any other later visualizations. See its examples on obvz github page.
- header tags like :mytag: could be used for coloring, like is done in org-mind-map-write in its .dot export. I like this style as well. So if org-brain could use different faces based on such tags, could be nice. Alone a fixed set of 12 tags would be already better than nothing.
One more extra thought, because related: 3. Different faces could be used for input / output links as well. (Input / output links do not exist in current org-brain yet.)
How is the coloring caused in above examples?