emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* due today notification
@ 2010-04-23 17:12 Buck Brody
  2010-04-23 22:54 ` Matt Lundin
  2010-04-24  7:40 ` Bastien
  0 siblings, 2 replies; 12+ messages in thread
From: Buck Brody @ 2010-04-23 17:12 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 343 bytes --]

Is there a way to know if an item is due today by only looking at the
headline or at an agenda?  For instance, could a tag "today" be triggered
based upon a deadline? Basically, when looking at a sparse tree or an
agenda, I would like to know what is due today without using "agenda for
current day or week" or going into column view.

Thanks

[-- Attachment #1.2: Type: text/html, Size: 390 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: due today notification
  2010-04-23 17:12 due today notification Buck Brody
@ 2010-04-23 22:54 ` Matt Lundin
  2010-04-26 16:48   ` Buck Brody
  2010-04-24  7:40 ` Bastien
  1 sibling, 1 reply; 12+ messages in thread
From: Matt Lundin @ 2010-04-23 22:54 UTC (permalink / raw)
  To: buckbrody; +Cc: emacs-orgmode

Buck Brody <buckbrody@gmail.com> writes:

> Is there a way to know if an item is due today by only looking at the
> headline or at an agenda?  For instance, could a tag "today" be
> triggered based upon a deadline? Basically, when looking at a sparse
> tree or an agenda, I would like to know what is due today without using
> "agenda for current day or week" or going into column view.

C-c / m DEADLINE="<today>" [RET]

Best,
Matt

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: due today notification
  2010-04-23 17:12 due today notification Buck Brody
  2010-04-23 22:54 ` Matt Lundin
@ 2010-04-24  7:40 ` Bastien
  1 sibling, 0 replies; 12+ messages in thread
From: Bastien @ 2010-04-24  7:40 UTC (permalink / raw)
  To: buckbrody; +Cc: emacs-orgmode

Hi,

Buck Brody <buckbrody@gmail.com> writes:

> Is there a way to know if an item is due today by only looking at the headline
> or at an agenda? 

The is the agenda custom command I use for this:

,----
| ("d" "Due today" agenda ""
|  ((org-agenda-ndays 1)
|   (org-deadline-warning-days 0)
|   (org-agenda-skip-scheduled-if-deadline-is-shown t)
|   (org-agenda-skip-function
|    (lambda ()
|     (let* ((dl (org-entry-get nil "DEADLINE")))
|      (if (or (not dl)
|              (equal dl "")
|              (org-time> dl (org-time-today)))
|               (progn (outline-next-heading) (point))))))))
`----

It shows all deadlines due today.

HTH

-- 
 Bastien

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: due today notification
  2010-04-23 22:54 ` Matt Lundin
@ 2010-04-26 16:48   ` Buck Brody
  2010-04-27 19:01     ` Matthew Lundin
  0 siblings, 1 reply; 12+ messages in thread
From: Buck Brody @ 2010-04-26 16:48 UTC (permalink / raw)
  To: Matt Lundin; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 840 bytes --]

Sorry, I don't think I properly described what I am looking for.  I want a
visual indicator (like a tag or a face) of tasks due today, but I don't want
to do a specific search.  The idea would be that, within a view of all
tasks, I would be able to see at a glance which were due today.  Does that
make sense?


On Fri, Apr 23, 2010 at 6:54 PM, Matt Lundin <mdl@imapmail.org> wrote:

> Buck Brody <buckbrody@gmail.com> writes:
>
> > Is there a way to know if an item is due today by only looking at the
> > headline or at an agenda?  For instance, could a tag "today" be
> > triggered based upon a deadline? Basically, when looking at a sparse
> > tree or an agenda, I would like to know what is due today without using
> > "agenda for current day or week" or going into column view.
>
> C-c / m DEADLINE="<today>" [RET]
>
> Best,
> Matt
>

[-- Attachment #1.2: Type: text/html, Size: 1298 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: due today notification
  2010-04-26 16:48   ` Buck Brody
@ 2010-04-27 19:01     ` Matthew Lundin
  2010-04-28 19:12       ` Buck Brody
  0 siblings, 1 reply; 12+ messages in thread
From: Matthew Lundin @ 2010-04-27 19:01 UTC (permalink / raw)
  To: buckbrody; +Cc: emacs-orgmode

Hi Buck,

Buck Brody <buckbrody@gmail.com> writes:

> Sorry, I don't think I properly described what I am looking for.  I
> want a visual indicator (like a tag or a face) of tasks due today, but
> I don't want to do a specific search.  The idea would be that, within a
> view of all tasks, I would be able to see at a glance which were due
> today.  Does that make sense?

I'm not aware of any such functionality. One solution, I suppose, would
be to use org-map-entries and a custom function to add a tag to all
entries due today. But adding the tags with org-map-entries would likely
be just as slow as a search, so there may not be much point.

(info "(org) Using the mapping API")

> On Fri, Apr 23, 2010 at 6:54 PM, Matt Lundin <mdl@imapmail.org> wrote:
>
>     C-c / m DEADLINE="<today>" [RET]
>    

Might I ask why the sparse tree search above or a simple agenda view of
deadlines is inadequate? The daily agenda provides a nice view of all
deadlines, making clear which are due today and which are past due. And
with a custom agenda command you can see only those items that are due
today:

--8<---------------cut here---------------start------------->8---
(setq org-agenda-custom-commands 
      '(("d" "Due today" agenda ""
	 ((org-agenda-entry-types '(:deadline))
	  (org-deadline-warning-days 0)))))
--8<---------------cut here---------------end--------------->8---

Best,
Matt

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: due today notification
  2010-04-27 19:01     ` Matthew Lundin
@ 2010-04-28 19:12       ` Buck Brody
  2010-04-28 19:57         ` Matthew Lundin
  2010-04-28 20:46         ` Nick Dokos
  0 siblings, 2 replies; 12+ messages in thread
From: Buck Brody @ 2010-04-28 19:12 UTC (permalink / raw)
  To: Matthew Lundin; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1807 bytes --]

Matt,

Assume I have 10 things that must be done for a specific project and two of
them must be done today.  I want to be able to know which two are due today,
but I still want to see them in the same list as the other 8 items because
it gives useful context.

Buck

On Tue, Apr 27, 2010 at 3:01 PM, Matthew Lundin <mdl@imapmail.org> wrote:

> Hi Buck,
>
> Buck Brody <buckbrody@gmail.com> writes:
>
> > Sorry, I don't think I properly described what I am looking for.  I
> > want a visual indicator (like a tag or a face) of tasks due today, but
> > I don't want to do a specific search.  The idea would be that, within a
> > view of all tasks, I would be able to see at a glance which were due
> > today.  Does that make sense?
>
> I'm not aware of any such functionality. One solution, I suppose, would
> be to use org-map-entries and a custom function to add a tag to all
> entries due today. But adding the tags with org-map-entries would likely
> be just as slow as a search, so there may not be much point.
>
> (info "(org) Using the mapping API")
>
> > On Fri, Apr 23, 2010 at 6:54 PM, Matt Lundin <mdl@imapmail.org> wrote:
> >
> >     C-c / m DEADLINE="<today>" [RET]
> >
>
> Might I ask why the sparse tree search above or a simple agenda view of
> deadlines is inadequate? The daily agenda provides a nice view of all
> deadlines, making clear which are due today and which are past due. And
> with a custom agenda command you can see only those items that are due
> today:
>
> --8<---------------cut here---------------start------------->8---
> (setq org-agenda-custom-commands
>      '(("d" "Due today" agenda ""
>         ((org-agenda-entry-types '(:deadline))
>          (org-deadline-warning-days 0)))))
> --8<---------------cut here---------------end--------------->8---
>
> Best,
> Matt
>

[-- Attachment #1.2: Type: text/html, Size: 2533 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: due today notification
  2010-04-28 19:12       ` Buck Brody
@ 2010-04-28 19:57         ` Matthew Lundin
  2010-04-28 20:14           ` Buck Brody
  2010-04-28 20:46         ` Nick Dokos
  1 sibling, 1 reply; 12+ messages in thread
From: Matthew Lundin @ 2010-04-28 19:57 UTC (permalink / raw)
  To: buckbrody; +Cc: emacs-orgmode

Buck Brody <buckbrody@gmail.com> writes:

> >     Might I ask why the sparse tree search above or a simple agenda
> >     view of deadlines is inadequate? The daily agenda provides a nice
> >     view of all deadlines, making clear which are due today and which
> >     are past due. And with a custom agenda command you can see only
> >     those items that are due today:
>
> Assume I have 10 things that must be done for a specific project and
> two of them must be done today.  I want to be able to know which two
> are due today, but I still want to see them in the same list as the
> other 8 items because it gives useful context.  
>

But isn't this precisely what a sparse tree does? I.e., it highlights
the relevant deadlines but preserves the context...

I dug around in the source code and found a command (normally invoked by
org-sparse-tree) that shows all deadlines in a file within n days
(determined by a prefix argument).

If you type...

C-u 1 M-x org-check-deadlines

...org-mode will highlight all the deadlines in the buffer due today or
past due. You could bind this to a key.

Best,
Matt

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: due today notification
  2010-04-28 19:57         ` Matthew Lundin
@ 2010-04-28 20:14           ` Buck Brody
  2010-04-28 20:38             ` Matthew Lundin
  0 siblings, 1 reply; 12+ messages in thread
From: Buck Brody @ 2010-04-28 20:14 UTC (permalink / raw)
  To: Matthew Lundin; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1698 bytes --]

Matt,

Thanks for your suggestions.

The problem with the sparse tree is that a sparse tree will only show the
headlines above the item with a deadline, it will not show the sibling
headlines.  For example, if I used a sparse tree on:

* Fruit
** Apple
*** Macintosh
*** Crab
    DEADLINE: <2010-04-28 Wed>
*** Golden delicious
** Vegetable
*** lettuce
*** squash
*** cucumber


It would look like

* Fruit
*** Crab
    DEADLINE: <2010-04-28 Wed>



Buck




On Wed, Apr 28, 2010 at 3:57 PM, Matthew Lundin <mdl@imapmail.org> wrote:

> Buck Brody <buckbrody@gmail.com> writes:
>
> > >     Might I ask why the sparse tree search above or a simple agenda
> > >     view of deadlines is inadequate? The daily agenda provides a nice
> > >     view of all deadlines, making clear which are due today and which
> > >     are past due. And with a custom agenda command you can see only
> > >     those items that are due today:
> >
> > Assume I have 10 things that must be done for a specific project and
> > two of them must be done today.  I want to be able to know which two
> > are due today, but I still want to see them in the same list as the
> > other 8 items because it gives useful context.
> >
>
> But isn't this precisely what a sparse tree does? I.e., it highlights
> the relevant deadlines but preserves the context...
>
> I dug around in the source code and found a command (normally invoked by
> org-sparse-tree) that shows all deadlines in a file within n days
> (determined by a prefix argument).
>
> If you type...
>
> C-u 1 M-x org-check-deadlines
>
> ...org-mode will highlight all the deadlines in the buffer due today or
> past due. You could bind this to a key.
>
> Best,
> Matt
>

[-- Attachment #1.2: Type: text/html, Size: 2786 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: due today notification
  2010-04-28 20:14           ` Buck Brody
@ 2010-04-28 20:38             ` Matthew Lundin
  0 siblings, 0 replies; 12+ messages in thread
From: Matthew Lundin @ 2010-04-28 20:38 UTC (permalink / raw)
  To: buckbrody; +Cc: emacs-orgmode

Buck Brody <buckbrody@gmail.com> writes:

> The problem with the sparse tree is that a sparse tree will only show
> the headlines above the item with a deadline, it will not show the
> sibling headlines.  For example, if I used a sparse tree on:

That depends on the value of org-show-siblings. 

To ensure that siblings are visible, you can use a simple setting such
as:

(setq org-show-siblings t)

Type C-h v org-show-hierarchy-above [RET] for more fine-grained
customization options.

With org-show-siblings set to t, I see the following:

--8<---------------cut here---------------start------------->8---
* Fruit
** Apple
*** Macintosh
*** Crab
    DEADLINE: <2010-04-28 Wed>
*** Golden delicious
** Vegetable
--8<---------------cut here---------------end--------------->8---

Best,
Matt

> * Fruit
> ** Apple
> *** Macintosh
> *** Crab
>     DEADLINE: <2010-04-28 Wed>
> *** Golden delicious
> ** Vegetable
> *** lettuce
> *** squash
> *** cucumber
>
> It would look like
>
> * Fruit
> *** Crab
>     DEADLINE: <2010-04-28 Wed>

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re: due today notification
  2010-04-28 19:12       ` Buck Brody
  2010-04-28 19:57         ` Matthew Lundin
@ 2010-04-28 20:46         ` Nick Dokos
  2010-04-28 21:29           ` Buck Brody
  1 sibling, 1 reply; 12+ messages in thread
From: Nick Dokos @ 2010-04-28 20:46 UTC (permalink / raw)
  To: buckbrody; +Cc: Matthew Lundin, emacs-orgmode, nicholas.dokos

Buck Brody <buckbrody@gmail.com> wrote:


> Assume I have 10 things that must be done for a specific project and two of
> them must be done today.  I want to be able to know which two are due today,
> but I still want to see them in the same list as the other 8 items because
> it gives useful context.
> 

Coming late to the party and I'm almost sure that the following will not
satisfy you, but maybe it'll help the rest of us understand what you are
really after (afaict, that's still not clear - apologies if I'm
generalizing unwarrantedly).

Say you have project foo with project file foo.org:

,----
| #+STARTUP: showall
| *** Long list of project items
| **** a
| **** b
| **** c
|      DEADLINE: <2010-04-28 Wed>
| **** d
| **** e
| **** f
|    
| **** g
| 
| **** h
|      DEADLINE: <2010-04-28 Wed>
| **** i
| **** j
`----

Items c and h are due today. I assume you have added the file to your
agenda list.  Then you look at your agenda and you get:

,----
| Week-agenda (W17-W18):
| Wednesday  28 April 2010
|   ...
|   foo:        Deadline:   c
|   foo:        Deadline:   h
|   ...
| Thursday   29 April 2010
|   ...
`----

Click on the c line and press <RET>: you are in foo.org, on item c,
and there's your context. Ditto for the h line in the agenda.

If this does not satisfy you, what would you like to have seen instead?

HTH in some small way,
Nick

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re: due today notification
  2010-04-28 20:46         ` Nick Dokos
@ 2010-04-28 21:29           ` Buck Brody
  2010-04-28 22:34             ` Nick Dokos
  0 siblings, 1 reply; 12+ messages in thread
From: Buck Brody @ 2010-04-28 21:29 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Matthew Lundin, emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 2549 bytes --]

Nick,

Thanks for the suggestion.

What I want is a way to know, just by looking at a headline, if it is due
today.  Maybe this isn't something most people care about because they keep
their files unfolded most of the time, so they can see the DEADLINE
property.  All my tasks are kept on the third level and I don't usually keep
the file unfolded past that because I wouldn't be able to see enough
headlines at once.

Maybe it would be best if I explain my current workflow.  I use agenda to
see what is due today.  I then manually assign those items the A priority.
 For the rest of the day, whether I am in a different agenda view, or just
within my main file, I can quickly see what items are due today because they
have the A priority within the headline.  Using a tag would work just as
well.  I am looking for a way to cut out this manual process.

I appreciate everyone's help, but I don't want to use up a lot of peoples
time because this is not that big a problem for me.

Thanks,

Buck

On Wed, Apr 28, 2010 at 4:46 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:

> Buck Brody <buckbrody@gmail.com> wrote:
>
>
> > Assume I have 10 things that must be done for a specific project and two
> of
> > them must be done today.  I want to be able to know which two are due
> today,
> > but I still want to see them in the same list as the other 8 items
> because
> > it gives useful context.
> >
>
> Coming late to the party and I'm almost sure that the following will not
> satisfy you, but maybe it'll help the rest of us understand what you are
> really after (afaict, that's still not clear - apologies if I'm
> generalizing unwarrantedly).
>
> Say you have project foo with project file foo.org:
>
> ,----
> | #+STARTUP: showall
> | *** Long list of project items
> | **** a
> | **** b
> | **** c
> |      DEADLINE: <2010-04-28 Wed>
> | **** d
> | **** e
> | **** f
> |
> | **** g
> |
> | **** h
> |      DEADLINE: <2010-04-28 Wed>
> | **** i
> | **** j
> `----
>
> Items c and h are due today. I assume you have added the file to your
> agenda list.  Then you look at your agenda and you get:
>
> ,----
> | Week-agenda (W17-W18):
> | Wednesday  28 April 2010
> |   ...
> |   foo:        Deadline:   c
> |   foo:        Deadline:   h
> |   ...
> | Thursday   29 April 2010
> |   ...
> `----
>
> Click on the c line and press <RET>: you are in foo.org, on item c,
> and there's your context. Ditto for the h line in the agenda.
>
> If this does not satisfy you, what would you like to have seen instead?
>
> HTH in some small way,
> Nick
>
>

[-- Attachment #1.2: Type: text/html, Size: 3422 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re: due today notification
  2010-04-28 21:29           ` Buck Brody
@ 2010-04-28 22:34             ` Nick Dokos
  0 siblings, 0 replies; 12+ messages in thread
From: Nick Dokos @ 2010-04-28 22:34 UTC (permalink / raw)
  To: buckbrody; +Cc: Matthew Lundin, nicholas.dokos, emacs-orgmode

Buck Brody <buckbrody@gmail.com> wrote:

> ...
> Maybe it would be best if I explain my current workflow.  I use agenda to see what is due today.  I
> then manually assign those items the A priority.  For the rest of the day, whether I am in a
> different agenda view, or just within my main file, I can quickly see what items are due today
> because they have the A priority within the headline.  Using a tag would work just as well.  I am
> looking for a way to cut out this manual process.
> 

OK. Maybe the following will help. Define the following function
(perhaps in your .emacs):

(defun bb-mark-todays-deadlines-as-high-priority ()
"Find all entries with a DEADLINE of today and give them high priority."
  (interactive)
  (org-map-entries '(org-priority ?A) "+DEADLINE=\"<today>\"" 'file 'archive 'trees))

and invoke it in the project buffer with 

    M-x bb-mark-todays-deadlines-as-high-priority <RET>

(or bind it to some key for convenience). You might have to fiddle with
it a bit - the mapping API is described in section A.10 of the Org
manual.

HTH,
Nick

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-04-28 22:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-23 17:12 due today notification Buck Brody
2010-04-23 22:54 ` Matt Lundin
2010-04-26 16:48   ` Buck Brody
2010-04-27 19:01     ` Matthew Lundin
2010-04-28 19:12       ` Buck Brody
2010-04-28 19:57         ` Matthew Lundin
2010-04-28 20:14           ` Buck Brody
2010-04-28 20:38             ` Matthew Lundin
2010-04-28 20:46         ` Nick Dokos
2010-04-28 21:29           ` Buck Brody
2010-04-28 22:34             ` Nick Dokos
2010-04-24  7:40 ` Bastien

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).