Re: org-super-agenda global list of TODO items

2022-09-14 Thread Angel de Vicente
Hello,

Angel de Vicente  writes:

> great. That looks very promising, and without the need to change the
> source code. I will try it later on and report back.

I ended up with this (and going back to unmodified source code for
org-super-agenda, and it now works beautifully. 

,
| (setq own-agenda-groups '((:name "Efemerides" :tag "efemerides" :order 1)
|  (:name "IMPORTANT" :priority "A" :transformer
| (--> it
|  (propertize it 'face
|  '(:foreground "red" 
:background "green")))
| :order 1)
|  (:name "Astrophysics" :tag "astrophysics" :order 3)
|  (:name "Hacking" :tag "hacking" :order 3)
|  (:name "Admin" :tag "admin" :order 4)))
| 
| (setq org-agenda-custom-commands
|   '(("h" "Agenda and tasks"
|((agenda "" ((org-super-agenda-groups
|(append
| '((:todo "DONE" :discard)
|   (:name "Schedule" :time-grid t :transformer
|  (--> it
|   (propertize it 'face
|   '(:foreground "yellow")
| own-agenda-groups
|   (alltodo "" ((org-super-agenda-groups
| (append
|  '((:todo "DONE" :discard))
|  own-agenda-groups  
`

Many thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-14 Thread Angel de Vicente
Hello,

Christophe Schockaert  writes:

> If I am right (I am playing with the config, it’s not in my daily setup yet 
> for
> now), I could achieve this by defining "org-agenda-custom-commands" as shown 
> in
> the "Projects" example :
> https://github.com/alphapapa/org-super-agenda/blob/master/examples.org#projects.
>
> In that case, "org-super-agenda-groups" is defined differently according to 
> the
> context, so the "time-grid" captures the timed entries in its scope. Then,
> "org-super-agenda-groups" applies to the TODOs in the "todo" or "alltodo"
> context (I used the latter one) where I don’t define the "time-grid"
> selection. Or, maybe I applied it to the "alltodo" only, and discarded it for
> the agenda grid to work only on the TODOs. I don’t remember exactly, however
> this might be a workaround to try that does not need an update of the code,
> especially if it is not expected to be stable and supported by the author.

great. That looks very promising, and without the need to change the
source code. I will try it later on and report back.

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-13 Thread Christophe Schockaert

On 2022-09-13 20:55, Angel de Vicente wrote:

Hello,


This looks correct. The only suspicious group is the one with
:time-grid. Time grid is not supported in todo list by vanilla
org-agenda. I am not sure how well org-super-agenda handles it.

I'd try to remove the "Schedule" group for TODO agenda. If it helps 
the

situation, you may consider reporting the issue to org-super-agenda
author at https://github.com/alphapapa/org-super-agenda/


thanks for the help. It turns out that this was already an issue in
org-super-agenda
(https://github.com/alphapapa/org-super-agenda/issues/212). User 
tuh

provided a possible fix
(https://github.com/alphapapa/org-super-agenda/pull/221), which has not
been accepted yet since apparently perhaps it can break other things,
but in my case it looks like it is working just fine, so I'll risk it
:-)

Cheers,


Hi,


Thank you for pointing this bug report.
I encountered the same myself, but if I remember correctly, I went 
through it another way, so I was not sure it was expected to work this 
way.


If I am right (I am playing with the config, it’s not in my daily setup 
yet for now), I could achieve this by defining 
"org-agenda-custom-commands" as shown in the "Projects" example : 
https://github.com/alphapapa/org-super-agenda/blob/master/examples.org#projects.


In that case, "org-super-agenda-groups" is defined differently according 
to the context, so the "time-grid" captures the timed entries in its 
scope. Then, "org-super-agenda-groups" applies to the TODOs in the 
"todo" or "alltodo" context (I used the latter one) where I don’t define 
the "time-grid" selection. Or, maybe I applied it to the "alltodo" only, 
and discarded it for the agenda grid to work only on the TODOs. I don’t 
remember exactly, however this might be a workaround to try that does 
not need an update of the code, especially if it is not expected to be 
stable and supported by the author.



Sincerely,

Christophe

--
--->  https://www.citadels.earth
Once it's perfectly aimed, the flying arrow goes straight to its target.
Thus, don't worry when things go right.
There will be enough time to worry about if they go wrong.
Then, it's time to fire a new arrow towards another direction.
Don't sink.  Adapt yourself !  The archer has to shoot accurately and
quickly.
[Words of Erenthar, the bowman ranger] <---



Re: org-super-agenda global list of TODO items

2022-09-13 Thread Angel de Vicente
Hello,

> This looks correct. The only suspicious group is the one with
> :time-grid. Time grid is not supported in todo list by vanilla
> org-agenda. I am not sure how well org-super-agenda handles it.
>
> I'd try to remove the "Schedule" group for TODO agenda. If it helps the
> situation, you may consider reporting the issue to org-super-agenda
> author at https://github.com/alphapapa/org-super-agenda/

thanks for the help. It turns out that this was already an issue in
org-super-agenda
(https://github.com/alphapapa/org-super-agenda/issues/212). User tuh
provided a possible fix
(https://github.com/alphapapa/org-super-agenda/pull/221), which has not
been accepted yet since apparently perhaps it can break other things,
but in my case it looks like it is working just fine, so I'll risk it
:-)

Cheers,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-13 Thread Ihor Radchenko
Angel de Vicente  writes:

> Ihor Radchenko  writes:
>
>> How do you customize your org-super-agenda-groups variable?
>
> via customize-variable, which sets this in my custom-set-variables in my 
> .emacs:
>
> ,
> |  '(org-super-agenda-groups
> |'((:name "Schedule" :time-grid t :transformer
> | (--> it
> |  (propertize it 'face
> |  '(:foreground "yellow"
> |  (:name "Important" :priority "A")
> |  (:name "POLMAG" :tag "polmag")
> |  (:name "Astrophysics" :tag
> | ("astrophysics"))
> |  (:name "Personal" :tag "personal")
> |  (:priority<= "B" :order 1)))
> `

This looks correct. The only suspicious group is the one with
:time-grid. Time grid is not supported in todo list by vanilla
org-agenda. I am not sure how well org-super-agenda handles it.

I'd try to remove the "Schedule" group for TODO agenda. If it helps the
situation, you may consider reporting the issue to org-super-agenda
author at https://github.com/alphapapa/org-super-agenda/

-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92



Re: org-super-agenda global list of TODO items

2022-09-13 Thread Angel de Vicente
Hello,

Ihor Radchenko  writes:

> How do you customize your org-super-agenda-groups variable?

via customize-variable, which sets this in my custom-set-variables in my .emacs:

,
|  '(org-super-agenda-groups
|'((:name "Schedule" :time-grid t :transformer
| (--> it
|  (propertize it 'face
|  '(:foreground "yellow"
|  (:name "Important" :priority "A")
|  (:name "POLMAG" :tag "polmag")
|  (:name "Astrophysics" :tag
| ("astrophysics"))
|  (:name "Personal" :tag "personal")
|  (:priority<= "B" :order 1)))
`
 
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-13 Thread Ihor Radchenko
Angel de Vicente  writes:

>> Could you please elaborate what you mean by "organize"?
>
> Maybe the best is an image... If you look at
> https://github.com/alphapapa/org-super-agenda/blob/master/images/screenshots/index.org,
> you can see that the TODO items for a given date in the agenda are
> neatly organized by using org-super-agenda into user-defined groups
> (Important, Personal, etc.).
>
> I got this working fine, but then I have a long list of TODO items with
> no scheduled date. I was hoping that org-super-agenda would also work on
> those items, so that similar grouping would be applied to them, but I
> don't know if this is not possible or I'm missing something.

How do you customize your org-super-agenda-groups variable?

-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92



Re: org-super-agenda global list of TODO items

2022-09-12 Thread Angel de Vicente
Hello,

Ihor Radchenko  writes:

> Could you please elaborate what you mean by "organize"?

Maybe the best is an image... If you look at
https://github.com/alphapapa/org-super-agenda/blob/master/images/screenshots/index.org,
you can see that the TODO items for a given date in the agenda are
neatly organized by using org-super-agenda into user-defined groups
(Important, Personal, etc.).

I got this working fine, but then I have a long list of TODO items with
no scheduled date. I was hoping that org-super-agenda would also work on
those items, so that similar grouping would be applied to them, but I
don't know if this is not possible or I'm missing something.

As an example, my agenda now looks like the following, where the
grouping is not applied to the Global list of TODO items (which I would
like):

,
| Day-agenda (W37):
| Tuesday13 September 2022
| 
|  Schedule
|6:35.. now - - - - - - - - - - - - - - - - - - - - - - - - 
-
|8:00.. 
|   10:00.. 
|   12:00.. 
|   14:00.. 
|   16:00.. 
|   diary:  17:30-18:30 Timaginas Teatro 
|   18:00.. 
|   20:00.. 
| 
|  Important
|   TODO_personal:Scheduled:  TODO [#A] Revisión óptica
:personal:
| 
|  Personal
|   TODO_personal:Scheduled:  TODO Call city hall  
:personal:
| 
| 
===
| Global list of TODO items of type: ALL
| 
|  Schedule
|   TODO_wprogress:TODO [#A] P-CORONA (open source version) [2/11]
:polmag:
|   TODO_personal:TODO [#B] Oculista Alex   
:personal:
|   TODO_personal:TODO [#B] Imprimir detalles Pelayo
:personal:
|   TODO_wprogress:TODO Leer:   
:astrophysics:
|   TODO_wprogress:TODO PORTA: Prepare citation file  
:polmag:
`

-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)




Re: org-super-agenda global list of TODO items

2022-09-12 Thread Ihor Radchenko
Angel de Vicente  writes:

> I managed to organize my todo
> items in the daily agenda view without issues, but I'm not sure what I
> have to do to organize the items in the "Global list of TODO items". Is
> this possible? Any examples to point me in the right direction?

Could you please elaborate what you mean by "organize"?

-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92



org-super-agenda global list of TODO items

2022-09-12 Thread Angel de Vicente
Hello,

I just learnt about org-super-agenda today and it looks brilliant to
keep my agenda a bit better organized. But I tend to use the "C-c a h"
to view the daily agenda and the tasks. I managed to organize my todo
items in the daily agenda view without issues, but I'm not sure what I
have to do to organize the items in the "Global list of TODO items". Is
this possible? Any examples to point me in the right direction?

Many thanks,
-- 
Ángel de Vicente
 Research Software Engineer (Supercomputing and BigData)
 Instituto de Astrofísica de Canarias (https://www.iac.es/en)