From: Christopher Allan Webber <cwebber@dustycloud.org>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: agenda: personal priority for today
Date: Tue, 16 Apr 2013 10:58:55 -0500 [thread overview]
Message-ID: <87haj6a2m8.fsf@earlgrey.lan> (raw)
In-Reply-To: <87hajeyn9y.fsf@bzg.ath.cx>
Bastien writes:
> Hi Christopher,
>
> Christopher Allan Webber <cwebber@dustycloud.org> writes:
>
>> I wonder if we had a property that was basically sorting on very large
>> numbers? When you add something to the agenda and there aren't any
>> sorted items, it creates a property with some median-ish very large
>> number. As you move things up and down on the agenda it sorts in random
>> ranges between the chunks of huge number space per item. This would be
>> a goofy but workable solution?
>
> I don't know -- it's hard to make sure we speak about the same things
> when brainstorming like this. Where would you store the property you
> are talking to (for example)? Sorry for the non-romantic question :)
Just store the property on the item itself, like:
#+BEGIN_SRC org
* My Tasklist
** TODO This task second
:PROPERTIES:
:Sorting: 5029662198291
:END:
** TODO This task last
:PROPERTIES:
:Sorting: 4362296268052
:END:
* Another tasklist
** TODO This task first
:PROPERTIES:
:Sorting: 6495792999082
:END:
#+END_SRC
in theory, if you have numbers large enough, you should be able to
usually find something that's above or in-between to generate sorting
between things.
So if we wanted to move the last task to the second task, and we're on
our agenda and we see the following tasks:
sometask Sched.4x: TODO This task first
sometask Sched.4x: TODO This task second
sometask Sched.4x: TODO This task last
and we ask to move third up between second and first, it'll just pick a
new random number between that range, like:
random.randrange(5029662198291, 6495792999082)
so if we got 6417343542884 back, we would set that as the sorting
property for the task named "This task last" (which would then no longer
be last, it would be second! ;))
next prev parent reply other threads:[~2013-04-16 15:58 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-10 12:35 agenda: personal priority for today Michael Heinrich
2013-04-10 19:21 ` John Wiegley
2013-04-10 22:58 ` Bastien
2013-04-10 23:17 ` Christopher Allan Webber
2013-04-10 23:32 ` Bastien
2013-04-11 6:27 ` Daniel Bausch
2013-04-11 7:04 ` Bastien
2013-04-11 7:34 ` Daniel Bausch
2013-04-11 8:37 ` Bastien
2013-04-11 8:40 ` Bastien
2013-04-11 9:27 ` Daniel Bausch
2013-04-16 15:58 ` Christopher Allan Webber [this message]
2013-04-16 16:30 ` Bastien
2013-04-21 13:31 ` Christopher Allan Webber
2013-04-17 8:44 ` Daniel Clemente
2013-04-18 10:23 ` Bastien
2013-04-18 12:54 ` Daniel Clemente
2013-04-10 19:50 ` Samuel Wales
2013-04-11 12:16 ` Michael Brand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87haj6a2m8.fsf@earlgrey.lan \
--to=cwebber@dustycloud.org \
--cc=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).