From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: jump to iso-week in agenda Date: Thu, 20 Mar 2008 08:50:44 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JcFYB-00024Q-09 for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 03:51:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JcFY9-00023i-RA for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 03:50:58 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcFY9-00023c-8w for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 03:50:57 -0400 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JcFY8-0004BM-Kq for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 03:50:56 -0400 Received: from ug-out-1314.google.com ([66.249.92.171]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JcFY7-0006cJ-90 for emacs-orgmode@gnu.org; Thu, 20 Mar 2008 03:50:55 -0400 Received: by ug-out-1314.google.com with SMTP id a2so1738449ugf.48 for ; Thu, 20 Mar 2008 00:50:53 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thomas Baumann Cc: emacs-orgmode@gnu.org On Mar 15, 2008, at 5:00 PM, Thomas Baumann wrote: > Hi, > > I really like the most advanced (pure magic working ...) and easy > way of > entering dates in org mode. When answering a phone call it's only a > few > keystrokes to jump to the date and settle the appointment. However > there > are some people thinking in weeks (iso-week). So when those friends > call > it get's much more complicated. Currently when I would like to jump to > say week 46, I might find an old paper calendar or M-x > calendar-goto-iso-week. > > How difficult would it be to > (a) add the current iso-week into the headline of the Week-View That does not work, because the week view may or may not start on a Monday, so it may contain days from two different weeks. For now I am adding the ISO week number to every date in the agenda, if this seems too cluttered we need to think of a different solution. > (b) include magic jump to a certain week eg. *46 to jump to week 46 I have just pushed the necessary changes into the git repo. Here is the user interface: Suport for ISO week dates (ISO 8601) ------------------------------------ Dates in the agenda now show the ISO week and day specification, in the form `W08 2', meaning Tuesday of week 2. The keys `d', `w', `m', and `y' in the agenda view now accept prefix arguments. Remember that in the agenda, you can directly type a prefix argument by typing a number, no need to press `C-u' first. The prefix argument may be used to jump directly to a specific day of the year, ISO week, month, or year, respectively. For example, `32 d' jumps to February 1st, `9 w' to ISO week number 9. When setting day, week, or month view, a year may be encoded in the prefix argument as well. For example, `200712 w' will jump to week 12 in 2007. If such a year specification has only one or two digits, it will be mapped to the interval 1938-2037. When entering a date at the date prompt, you may now also specify an ISO week. For example w4 Monday of week 4 fri w4 Friday of week 4 w4-5 Same as above 2012 w4 fri Friday of week 4 in 2012. 2012-W04-5 Same as above So far I have not activated the effect of `org-read-date-prefer-future' on this functionality, because it seemed too unpredictable for me (as I usually do not know which week I am in). I'd appreciate comments on this issue: Should `org-read-date-prefer-future' also push dates into the next year if the week you are entering has already passed in the current year? For consistency I guess this should be the case, but I cannot quite wrap my head around it. I hope but am not entirely convinced that this will behave sanely also during the first/last week of a year. Please test extensively and report back. Enjoy! - Carsten