From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Powell Subject: Re: [Assistance Needed] View only prioritized items that have a deadline or or scheduled Date: Thu, 2 Aug 2012 07:38:09 -0400 Message-ID: References: <20120801092333.GA28370@debian> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f642d9481e5b804c646d843 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwtjH-0005ST-Tw for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 07:38:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SwtjG-00049h-EC for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 07:38:11 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:36850) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SwtjG-00049X-7G for emacs-orgmode@gnu.org; Thu, 02 Aug 2012 07:38:10 -0400 Received: by obhx4 with SMTP id x4so16548353obh.0 for ; Thu, 02 Aug 2012 04:38:09 -0700 (PDT) In-Reply-To: <20120801092333.GA28370@debian> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?Fran=E7ois_Allisson?= Cc: emacs-orgmode@gnu.org --e89a8f642d9481e5b804c646d843 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Fran=E7ois, Thanks for the help on this, and sorry about the late response. I may have asked the wrong way, but this solution is exactly what I am looking for. I use priority, scheduled [start times] and deadlines in the following way; A tasks need to be done today B tasks need to be done in the next 14 days C tasks need to be done in 30 days or more With each type of task only showing up when scheduled to start and deadlines only being true deadlines not "fake". The issue sometimes is that with routine/repeating items that have to be done a specific day (which are normally an "A" task) I do not want to see them until they need to be done (based on the scheduled date). So what I was doing was removing the priority to make them not show up in a view for mobileorg. Or the next scenario would be something that has a deadline that I really do not want to see until a determined time (based on the scheduled start time). On Wed, Aug 1, 2012 at 5:23 AM, Fran=E7ois Allisson w= rote: > Le mardi 31 jui 2012 =E0 20:48:02 (-0400), Andre Powell a =E9crit : > > I was wondering if someone could help me out with the following. I am > trying to > > create a custom agenda view that shows me items that have a priority an= d > either > > a scheduled date or deadline. This is what I have tried but it does not > seem to > > work. > > > > ("x" "Daily Scheduled Task" tags-todo "+PRIORITY=3D{A\\|B\\|C}" > > ((org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote > > notscheduled) (quote notdeadline)))))) > > > > > > The ideal situation would be to have task show up that are scheduled t= o > begin > > either today or before today. > > > > > > Thanks in advance for any assistance provided. > > -- > > Andre > > > > Hi Andre, > > I can't help you with your tags-todo view. But your ideal situation > remembers me more an agenda than a tags-todo view. What about: > > ;; Custom agenda-views > (setq org-agenda-custom-commands > '( > > ;; other custom agenda views > > ("x" "Daily Scheduled Task" > ((agenda "" > ((org-agenda-span 1) > (org-agenda-entry-types '(:deadline :scheduled)) > ;; only deadline and scheduled > (org-deadline-warning-days 0) > ;; you didn't specified how you wanted your deadline to > ;; appear. If only today and overdued items, set 0 as > ;; above; if you want to see them 30 days ahead, set 30; etc. > ;; By default, scheduled items appear only for today and > ;; past days (if todo item not done) > (org-agenda-sorting-strategy (quote ((agenda time-up > priority-down category-up tag-up)))) > ;; Set your sorting strategy > ; other options like (org-agenda-time-grid nil), etc. > )))) > > )) > > This should do /almost/ what you want: It shows only deadline and > scheduled items, and you can sort by priority. > > But there is one thing that I do not understand in your request (I do > not use priorities). Do you have items *with* deadline/schedule date > *and* no priority, that you don't want to see in your custom agenda > view? Can you explain me the idea behind? > > Because in that case, this would not do the trick. By default, *all* > items have a priority of B (see org-default-priority). What you could > decide is to redefine the priority set (org-lowest-priority and > org-highest-priority) by introducing a priority D, and decide to let > org-default-priority be D. > > Best, > > Fran=E7ois. > --=20 Andre --e89a8f642d9481e5b804c646d843 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Fran=E7ois,
Thanks for the help on this, and sorry about the late respo= nse. I may have asked the wrong way, but this solution is exactly what I am= looking for.

I use priority, scheduled [start tim= es] and deadlines in the following way;=A0
A tasks need to be done today
B tasks need to be done in the= next 14 days=A0
C tasks need to be done in 30 days or more
=
With each type of task only showing up when scheduled to start and dea= dlines only being true deadlines not "fake".

The issue sometimes is that with routine/repeating item= s that have to be done a specific day (which are normally an "A" = task) I do not want to see them until they need to be done (based on the sc= heduled date). So what I was doing was removing the priority to make them n= ot show up in a view for mobileorg. Or the next scenario would be something= that has a deadline that I really do not want to see until a determined ti= me (based on the scheduled start time).



On Wed, A= ug 1, 2012 at 5:23 AM, Fran=E7ois Allisson <francois@allisson.co>= ; wrote:
Le mardi 31 jui 2012 =E0 20:48:02 (-0400), A= ndre Powell a =E9crit :
> I was wondering if someone could help me out wi= th the following. I am trying to
> create a custom agenda view that shows me items that have a priority a= nd either
> a scheduled date or deadline. This is what I have tried but it does no= t seem to
> work.
>
> ("x" "Daily Scheduled Task" tags-todo "+PRIOR= ITY=3D{A\\|B\\|C}"
> ((org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote
> notscheduled) (quote notdeadline))))))=A0
>
>
> The ideal situation would be to have task show up =A0that are schedule= d to begin
> either today or before today.
>
>
> Thanks in advance for any assistance provided.
> --
> Andre
>

Hi Andre,

I can't help you with your tags-todo view. But your ideal situation
remembers me more an agenda than a tags-todo view. What about:

;; Custom agenda-views
(setq org-agenda-custom-commands
=A0 '(

=A0 =A0 ;; other custom agenda views

=A0 =A0 ("x" "Daily Scheduled Task"
=A0 =A0 =A0 ((agenda ""
=A0 =A0 =A0 =A0 ((org-agenda-span 1)
=A0 =A0 =A0 =A0 =A0(org-agenda-entry-types '(:deadline :scheduled))
=A0 =A0 =A0 =A0 =A0 =A0 ;; only deadline and scheduled
=A0 =A0 =A0 =A0 =A0(org-deadline-warning-days 0)
=A0 =A0 =A0 =A0 =A0 =A0 ;; you didn't specified how you wanted your dea= dline to
=A0 =A0 =A0 =A0 =A0 =A0 ;; appear. If only today and overdued items, set 0 = as
=A0 =A0 =A0 =A0 =A0 =A0 ;; above; if you want to see them 30 days ahead, se= t 30; etc.
=A0 =A0 =A0 =A0 =A0 =A0 ;; By default, scheduled items appear only for toda= y and
=A0 =A0 =A0 =A0 =A0 =A0 ;; past days (if todo item not done)
=A0 =A0 =A0 =A0 =A0(org-agenda-sorting-strategy (quote ((agenda time-up pri= ority-down category-up tag-up))))
=A0 =A0 =A0 =A0 =A0 =A0 ;; Set your sorting strategy
=A0 =A0 =A0 =A0 =A0; other options like (org-agenda-time-grid nil), etc. =A0 =A0 =A0))))

))

This should do /almost/ what you want: It shows only deadline and
scheduled items, and you can sort by priority.

But there is one thing that I do not understand in your request (I do
not use priorities). Do you have items *with* deadline/schedule date
*and* no priority, that you don't want to see in your custom agenda
view? Can you explain me the idea behind?

Because in that case, this would not do the trick. By default, *all*
items have a priority of B (see org-default-priority). What you could
decide is to redefine the priority set (org-lowest-priority and
org-highest-priority) by introducing a priority D, and decide to let
org-default-priority be D.

Best,

Fran=E7ois.



--
Andre


--e89a8f642d9481e5b804c646d843--