* sort lists by highest level entries
@ 2013-03-06 14:19 Rainer Stengele
2013-03-06 14:30 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Rainer Stengele @ 2013-03-06 14:19 UTC (permalink / raw)
To: emacs-orgmode
Hi,
having
- [2013-01-24 Do] text
- [2013-01-25 Fr] text
- [2013-02-01 Fr] text
which in full view is
- [2013-01-24 Do] text
* text
- [2013-01-25 Fr] text
#+BEGIN_EXAMPLE
TEXT
#+END_EXAMPLE
- [2013-02-01 Fr] text
* other stuff
I would like to sort the highest level entries, alphabetically would do
in this case, ending up with
- [2013-02-01 Fr] text
- [2013-01-25 Fr] text
- [2013-01-24 Do] text
which of course in full view is
- [2013-02-01 Fr] text
* other stuff
- [2013-01-25 Fr] text
#+BEGIN_EXAMPLE
TEXT
#+END_EXAMPLE
- [2013-01-24 Do] text
* text
org-sort and org-sort-entries does not what I want.
Did I miss something obvious?
Thanks,
Rainer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sort lists by highest level entries
2013-03-06 14:19 sort lists by highest level entries Rainer Stengele
@ 2013-03-06 14:30 ` Nicolas Goaziou
2013-03-06 15:30 ` Rainer Stengele
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2013-03-06 14:30 UTC (permalink / raw)
To: Rainer Stengele; +Cc: emacs-orgmode
Hello,
Rainer Stengele <rainer.stengele@online.de> writes:
> having
>
> - [2013-01-24 Do] text
> - [2013-01-25 Fr] text
> - [2013-02-01 Fr] text
>
[...]
> I would like to sort the highest level entries, alphabetically would do
> in this case, ending up with
>
> - [2013-02-01 Fr] text
> - [2013-01-25 Fr] text
> - [2013-01-24 Do] text
>
[...]
> org-sort and org-sort-entries does not what I want.
> Did I miss something obvious?
You mean alphabetically, but in reverse order: C-c ^ A
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sort lists by highest level entries
2013-03-06 14:30 ` Nicolas Goaziou
@ 2013-03-06 15:30 ` Rainer Stengele
2013-03-06 15:51 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Rainer Stengele @ 2013-03-06 15:30 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
Am 06.03.2013 15:30, schrieb Nicolas Goaziou:
> Hello,
>
> Rainer Stengele <rainer.stengele@online.de> writes:
>
>> having
>>
>> - [2013-01-24 Do] text
>> - [2013-01-25 Fr] text
>> - [2013-02-01 Fr] text
>>
>
> [...]
>
>
>> I would like to sort the highest level entries, alphabetically would do
>> in this case, ending up with
>>
>> - [2013-02-01 Fr] text
>> - [2013-01-25 Fr] text
>> - [2013-01-24 Do] text
>>
>
> [...]
>
>> org-sort and org-sort-entries does not what I want.
>> Did I miss something obvious?
>
> You mean alphabetically, but in reverse order: C-c ^ A
>
>
> Regards,
>
I mark the region and do tried. I get "Nothing to sort".
There are no headlines in that region.
Rainer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sort lists by highest level entries
2013-03-06 15:30 ` Rainer Stengele
@ 2013-03-06 15:51 ` Nicolas Goaziou
2013-03-06 15:56 ` Rainer Stengele
0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2013-03-06 15:51 UTC (permalink / raw)
To: Rainer Stengele; +Cc: emacs-orgmode
Rainer Stengele <rainer.stengele@online.de> writes:
> Am 06.03.2013 15:30, schrieb Nicolas Goaziou:
>> Hello,
>>
>> Rainer Stengele <rainer.stengele@online.de> writes:
>>
>>> having
>>>
>>> - [2013-01-24 Do] text
>>> - [2013-01-25 Fr] text
>>> - [2013-02-01 Fr] text
>>>
>>
>> [...]
>>
>>
>>> I would like to sort the highest level entries, alphabetically would do
>>> in this case, ending up with
>>>
>>> - [2013-02-01 Fr] text
>>> - [2013-01-25 Fr] text
>>> - [2013-01-24 Do] text
>>>
>>
>> [...]
>>
>>> org-sort and org-sort-entries does not what I want.
>>> Did I miss something obvious?
>>
>> You mean alphabetically, but in reverse order: C-c ^ A
>>
>>
>> Regards,
>>
>
> I mark the region and do tried. I get "Nothing to sort".
> There are no headlines in that region.
You want to sort a list. Point should be on one of its items when
calling the command.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sort lists by highest level entries
2013-03-06 15:51 ` Nicolas Goaziou
@ 2013-03-06 15:56 ` Rainer Stengele
2013-03-06 16:05 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Rainer Stengele @ 2013-03-06 15:56 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: emacs-orgmode
Am 06.03.2013 16:51, schrieb Nicolas Goaziou:
> Rainer Stengele <rainer.stengele@online.de> writes:
>
>> Am 06.03.2013 15:30, schrieb Nicolas Goaziou:
>>> Hello,
>>>
>>> Rainer Stengele <rainer.stengele@online.de> writes:
>>>
>>>> having
>>>>
>>>> - [2013-01-24 Do] text
>>>> - [2013-01-25 Fr] text
>>>> - [2013-02-01 Fr] text
>>>>
>>>
>>> [...]
>>>
>>>
>>>> I would like to sort the highest level entries, alphabetically would do
>>>> in this case, ending up with
>>>>
>>>> - [2013-02-01 Fr] text
>>>> - [2013-01-25 Fr] text
>>>> - [2013-01-24 Do] text
>>>>
>>>
>>> [...]
>>>
>>>> org-sort and org-sort-entries does not what I want.
>>>> Did I miss something obvious?
>>>
>>> You mean alphabetically, but in reverse order: C-c ^ A
>>>
>>>
>>> Regards,
>>>
>>
>> I mark the region and do tried. I get "Nothing to sort".
>> There are no headlines in that region.
>
> You want to sort a list. Point should be on one of its items when
> calling the command.
>
>
> Regards,
>
Awesome!
That did it. Thanks Nicolas.
I reread the manual:
C-c ^ (org-sort)
Sort same-level entries. When there is an active region, all entries
in the region will be sorted. Otherwise the children of the current
headline are sorted. The command prompts for the sorting method, which
can be alphabetically, numerically, by time (first timestamp with active
preferred, creation time, scheduled time, deadline time), by priority,
by TODO keyword (in the sequence the keywords have been defined in the
setup) or by the value of a property. Reverse sorting is possible as
well. You can also supply your own function to extract the sorting key.
With a C-u prefix, sorting will be case-sensitive.
I cannot find the hint to have to be on a list item. It looked more
promising to mark the region.
How can I begin to help work on the documentation?
Rainer
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sort lists by highest level entries
2013-03-06 15:56 ` Rainer Stengele
@ 2013-03-06 16:05 ` Nicolas Goaziou
0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2013-03-06 16:05 UTC (permalink / raw)
To: Rainer Stengele; +Cc: emacs-orgmode
Rainer Stengele <rainer.stengele@online.de> writes:
> I reread the manual:
>
> C-c ^ (org-sort)
> Sort same-level entries. When there is an active region, all entries
> in the region will be sorted. Otherwise the children of the current
> headline are sorted. The command prompts for the sorting method, which
> can be alphabetically, numerically, by time (first timestamp with active
> preferred, creation time, scheduled time, deadline time), by priority,
> by TODO keyword (in the sequence the keywords have been defined in the
> setup) or by the value of a property. Reverse sorting is possible as
> well. You can also supply your own function to extract the sorting key.
> With a C-u prefix, sorting will be case-sensitive.
>
> I cannot find the hint to have to be on a list item. It looked more
> promising to mark the region.
It is documented in section "2.7. Plain lists".
> How can I begin to help work on the documentation?
If you think something as to be done about it, you can provide a patch
against org.texi (and orgguide.texi). See:
http://orgmode.org/worg/org-contribute.html
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-03-06 16:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-06 14:19 sort lists by highest level entries Rainer Stengele
2013-03-06 14:30 ` Nicolas Goaziou
2013-03-06 15:30 ` Rainer Stengele
2013-03-06 15:51 ` Nicolas Goaziou
2013-03-06 15:56 ` Rainer Stengele
2013-03-06 16:05 ` Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).