alphapapa / org-sidebar

A helpful sidebar for Org mode
GNU General Public License v3.0
527 stars 16 forks source link

Inconsistency of todo keyword faces when faces defined as local variables #42

Closed llcc closed 3 years ago

llcc commented 3 years ago

org-sidebar uses the global todo keyword faces. Faces defined in file seems not used rightly in org-sidebar. You can reproduce the problem by using the following example. Thanks.

#+TITLE:TODO keyword face problems

* TODO task 1

** TODO a child task
SCHEDULED: <2020-12-27 Sun>

** TODO another child task
SCHEDULED: <2020-12-28 Mon>

* NEXT Task 2
SCHEDULED: <2020-12-29 Tue>

* DONE Task 3
DEADLINE: <2020-12-30 Wed>

#+TODO: TODO(t) NEXT(n) | DONE(d)
# Local Variables:
# org-todo-keyword-faces: (("todo" . "red") ("NEXT" . "pink") ("DONE" . "green"))
# End:

image

alphapapa commented 3 years ago

Thanks for the thorough report. However, please note that those sidebar views are provided by org-ql, not by code in this package, so this issue should be reported against org-ql.

If you'd like to file it there, I'm willing to consider it, however I would consider this to be an edge case that I'm not sure would be worth supporting, so I won't promise to implement it.

llcc commented 3 years ago

refer to https://github.com/alphapapa/org-ql/issues/174#issue-775830436