alphapapa / org-super-agenda

Supercharge your Org daily/weekly agenda by grouping items
GNU General Public License v3.0
1.37k stars 108 forks source link

Installation styles #15

Open rjhorn-agfa opened 7 years ago

rjhorn-agfa commented 7 years ago

Now that org-super-agenda is working well enough, I'm experimenting with methods of using it.

First, I've already concluded that I do not want a semi-permanent org-super-agenda-mode. I've found that I have several different uses for agenda commands. The one that benefits from org-super-agenda is the "what next" agenda that shows me today's time grid (for appointments, meetings, tele-conferences), priority todo's, categorized deadlines, etc. The ones where plain old org-agenda is better are the various task and project management views, like "what tasks are active for this project?" or "what's waiting on input from xxxx?"

As a result, I've installed it so that another global key (I've chosen "C-c S-a") starts the org-super-agenda. The built-in "C-c a" continues to generate org-agenda results without super processing.

The global key is attached at the moment to a function that is just a let-clause that sets the org-super-agenda-mode, sets the template, invokes the underlying org-agenda function, and unsets the org-super-agenda-mode. This provides a nice non-intrusive result. The rest of the org-agenda functions are undisturbed.

It opens up two paths that I've not explored yet. I'll deal with them after I'm happy with the "what next" agenda. 1) I could have context sensitive tempates. The one that I am thinking about would have a template that put work sections before the personal sections on weekdays before 6PM, and put personal sections before work sections on weekends and after 6PM. That would be kind of cool. 2) I might find other project management views that benefit from org-super-agenda templating. If so, I would add a menu structure that is similar to the menu structure in org-agenda. The template would then be specific to the needs of that kind of query.

alphapapa commented 7 years ago

Hi Robert,

That sounds very interesting! Please let me know if you come up with something cool, maybe it could be integrated or made into an addon package.

alphapapa commented 7 years ago

The global key is attached at the moment to a function that is just a let-clause that sets the org-super-agenda-mode, sets the template, invokes the underlying org-agenda function, and unsets the org-super-agenda-mode. This provides a nice non-intrusive result. The rest of the org-agenda functions are undisturbed.

BTW, please note that the org-agenda functions are undisturbed in any case. Only one function is advised, and when org-agenda-super-groups is nil, the advice has no effect. So you don't need to toggle the mode.