emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Anders Johansson <mejlaandersj@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Suggestion for improvement, org-read-date: prefer-closest-date instead of only prefer-future*
Date: Sat, 15 Mar 2014 15:17:33 +0100	[thread overview]
Message-ID: <532460FD.7050408@gmail.com> (raw)

Hi.

I sometimes use timestamps for scheduling, sometimes for logging things 
(manually and a few days later). It would be pretty convenient if one 
could define a preferred range of time for incomplete dates, instead of 
just prefer-future or default to current month or year.

Example:
It's 2013-12-25 and I want to schedule something for 2014-01-05 and add 
a "log timestamp" for something last week, 2013-12-20.

It would be convenient if entering "01-05" and "12-20" would do the 
right thing regardless of the setting of org-read-date-prefer-future.

This could be to prefer the closest date, but even more configurability 
would be added if a sliding range of dates along a year were preferred. 
For example, 9 months into the future and 3 in the past so that entering 
"9-26" would give 2013-09-26 and entering "9-24"
would give 2014-09-24.

I think something like this is reasonable as it might be more common to 
enter a date a few months back than one almost a year into the future.

I don't know if this applies as much to the case of only entering a day 
number though, maybe there entering "-x" covers the case of wanting to 
enter a date a few days back and preferring the future otherwise.


Perhaps this would add to much complexity to org-read-date, with little 
gain, and there may certainly be complications I haven't thought of, but 
I think it would be an interesting option for many people.

Cheers,
Anders Johansson

                 reply	other threads:[~2014-03-15 14:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=532460FD.7050408@gmail.com \
    --to=mejlaandersj@gmail.com \
    --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).