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

Apply face transformation to item only if cheduled #243

Open
deb75 opened this issue Apr 12, 2023 · 3 comments
Open

Apply face transformation to item only if cheduled #243

deb75 opened this issue Apr 12, 2023 · 3 comments

Comments

@deb75
Copy link

deb75 commented Apr 12, 2023

Hi,

I would like to apply a face transformation to a task, but only when this one is scheduled; so that I can easily figure out which
task has been scheduled or not.

I know one can apply face transformations, but I do not know if it can be conditioned by the existence of a schedule like :

* TODO [#A] mytodo
   [10:00-12:00 2023-04-14]  

Would it be possible to perform this with the current implementation of org-super-agenda ?

Regards

@alphapapa
Copy link
Owner

Hi,

You could use the :transformer selector to do so. You would need to use a function that checks whether the item is scheduled and applies a face if so.

@deb75
Copy link
Author

deb75 commented Apr 12, 2023

I tried to do that with :

(org-get-scheduled-time (point))

this works, but I do not know how to do it from an item.

@alphapapa
Copy link
Owner

I'd suggest studying the source code, e.g.

(org-super-agenda--defgroup scheduled

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

No branches or pull requests

2 participants