* How to change agenda sorting order temporarily?
@ 2016-05-30 12:14 Martin Beck
2016-05-30 15:25 ` Richard Lawrence
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Martin Beck @ 2016-05-30 12:14 UTC (permalink / raw)
To: emacs orgmode-mailinglist
[-- Attachment #1: Type: text/html, Size: 954 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to change agenda sorting order temporarily?
2016-05-30 12:14 How to change agenda sorting order temporarily? Martin Beck
@ 2016-05-30 15:25 ` Richard Lawrence
2016-05-30 15:33 ` Matt Lundin
2016-05-30 17:55 ` Samuel Wales
2 siblings, 0 replies; 5+ messages in thread
From: Richard Lawrence @ 2016-05-30 15:25 UTC (permalink / raw)
To: Martin Beck, emacs orgmode-mailinglist
Hi Martin,
Martin Beck <Elwood151@web.de> writes:
> I'm working with a lot of pre-defined agendas, but I sometimes would
> like to change the sorting order of one of those to different criteria
> (by time, alphanumerically, etc.).
> I did not find a way to do that in org-mode directly - did I overlook
> something, or do I really have to change the configuration of the
> whole agenda and rebuild it?
Did you find the variable `org-agenda-sorting-strategy'? That offers a
lot of possibilities.
> Related problem:
> If I change the configuration of the agenda by changing the
> customizing options, those changes do only have an effect, if I kill
> the agenda buffer and launch the agenda again.
> It would be nice, if I just could rebuild the existing agenda with "r"
> or "g", but that does not seem to be sufficient?
I'm afraid I don't know the answer to this, but would also be interested
to hear what it is.
Best,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to change agenda sorting order temporarily?
2016-05-30 12:14 How to change agenda sorting order temporarily? Martin Beck
2016-05-30 15:25 ` Richard Lawrence
@ 2016-05-30 15:33 ` Matt Lundin
2016-05-30 15:38 ` Matt Lundin
2016-05-30 17:55 ` Samuel Wales
2 siblings, 1 reply; 5+ messages in thread
From: Matt Lundin @ 2016-05-30 15:33 UTC (permalink / raw)
To: Martin Beck; +Cc: emacs orgmode-mailinglist
"Martin Beck" <Elwood151@web.de> writes:
> I'm working with a lot of pre-defined agendas, but I sometimes would
> like to change the sorting order of one of those to different criteria
> (by time, alphanumerically, etc.).
>
> I did not find a way to do that in org-mode directly - did I overlook
> something, or do I really have to change the configuration of the
> whole agenda and rebuild it?
>
> Related problem:
> If I change the configuration of the agenda by changing the
> customizing options, those changes do only have an effect, if I kill
> the agenda buffer and launch the agenda again.
> It would be nice, if I just could rebuild the existing agenda with "r"
> or "g", but that does not seem to be sufficient?
>
Here's a quick function that works for me:
--8<---------------cut here---------------start------------->8---
(defun my-org-agenda-change-sorting-strategy (strategy)
"Change the sorting strategy."
(interactive (list
(completing-read "Choose a strategy: "
(mapcar 'cdr (cdr org-sorting-choice))
nil t)))
;; adjust the following types as needed - e.g., add 'agenda, etc.
(org-agenda-check-type t 'todo 'tags 'search)
(let ((org-agenda-sorting-strategy (list (intern strategy))))
(org-agenda-redo)))
--8<---------------cut here---------------end--------------->8---
Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to change agenda sorting order temporarily?
2016-05-30 15:33 ` Matt Lundin
@ 2016-05-30 15:38 ` Matt Lundin
0 siblings, 0 replies; 5+ messages in thread
From: Matt Lundin @ 2016-05-30 15:38 UTC (permalink / raw)
To: Martin Beck; +Cc: emacs orgmode-mailinglist
Matt Lundin <mdl@imapmail.org> writes:
> "Martin Beck" <Elwood151@web.de> writes:
>
>> I'm working with a lot of pre-defined agendas, but I sometimes would
>> like to change the sorting order of one of those to different criteria
>> (by time, alphanumerically, etc.).
>>
>> I did not find a way to do that in org-mode directly - did I overlook
>> something, or do I really have to change the configuration of the
>> whole agenda and rebuild it?
>>
>> Related problem:
>> If I change the configuration of the agenda by changing the
>> customizing options, those changes do only have an effect, if I kill
>> the agenda buffer and launch the agenda again.
>> It would be nice, if I just could rebuild the existing agenda with "r"
>> or "g", but that does not seem to be sufficient?
>>
>
> Here's a quick function that works for me:
>
> (defun my-org-agenda-change-sorting-strategy (strategy)
> "Change the sorting strategy."
> (interactive (list
> (completing-read "Choose a strategy: "
> (mapcar 'cdr (cdr org-sorting-choice))
> nil t)))
> ;; adjust the following types as needed - e.g., add 'agenda, etc.
> (org-agenda-check-type t 'todo 'tags 'search)
> (let ((org-agenda-sorting-strategy (list (intern strategy))))
> (org-agenda-redo)))
I should add that with this function the new sort order is temporary.
Pressing "r" for refresh will restore the default sort order for the
buffer.
Matt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to change agenda sorting order temporarily?
2016-05-30 12:14 How to change agenda sorting order temporarily? Martin Beck
2016-05-30 15:25 ` Richard Lawrence
2016-05-30 15:33 ` Matt Lundin
@ 2016-05-30 17:55 ` Samuel Wales
2 siblings, 0 replies; 5+ messages in thread
From: Samuel Wales @ 2016-05-30 17:55 UTC (permalink / raw)
To: Martin Beck; +Cc: emacs orgmode-mailinglist
we have more or less instant tag filtering. i wonder if we could also
have instant sort order changing?
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-05-30 17:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-30 12:14 How to change agenda sorting order temporarily? Martin Beck
2016-05-30 15:25 ` Richard Lawrence
2016-05-30 15:33 ` Matt Lundin
2016-05-30 15:38 ` Matt Lundin
2016-05-30 17:55 ` Samuel Wales
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.