awth13 / org-appear

Toggle visibility of hidden Org mode element parts upon entering and leaving an element
MIT License
364 stars 19 forks source link

org-modern support #47

Open tecosaur opened 2 years ago

tecosaur commented 2 years ago

This is a bit of a "stretch goal" -type feature request, but it would really neat if this package supported decomposing org-modern prettifications. From what I can tell, other than adding a new custom variable and list of elements, this would also necessitate support for taking away display text properties on the current object.

awth13 commented 2 years ago

Hi, @tecosaur!

org-appear already works with display text properties when toggling entity elements so decomposing org-modern prettifications is definitely within the realm of possibility. There are, however, two issues that I have to resolve before I start adding any new functionality to org-appear.

First, org-appear, while starting as an emphasis marker toggling utility, now supports so many different elements that the codebase is in dire need of refactoring. I am seriously considering adding some meta functions that will let users add support for new elements without changes to org-appear.

Second, and more importantly, we found that org-appear conflicts with many packages that use jit-lock and/or font-lock to force fontification (#34). I believe this has to be resolved first to make sure org-appear does not become obsolete in the near future.

tecosaur commented 2 years ago

Thanks for the detailed reply @awth13! Generalising org-appear in the way you describe sounds great and goes beyond what I was hoping for :grinning:.