emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Shelagh Manton <shelagh.manton@gmail.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Organising freezers and generating shopping lists
Date: Mon, 8 Nov 2010 09:43:09 -0600	[thread overview]
Message-ID: <AANLkTin6qmFe44Q+zVEijghGaWS4WqyFRKXCJigXL9LS@mail.gmail.com> (raw)
In-Reply-To: <87sjzcepgz.fsf@gmail.com>


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

Hi Shelagh,


Sounds like a neat application for org-mode! I haven't seen anyone respond
yet, so here is what I can offer for starting points. I think what you're
looking to do is define a custom TODO state progression. Instead of TODO ->
DONE you want something more applicable to frozen food.

To point you in the right direction, I think you're looking at defining a
custom workflow:

- Define workflow states in .emacs:
http://orgmode.org/manual/Workflow-states.html#Workflow-states
<http://orgmode.org/manual/Workflow-states.html#Workflow-states>- The same
with key bindings:
http://orgmode.org/manual/Fast-access-to-TODO-states.html#Fast-access-to-TODO-states
- Bernt Hanson's workflow definitions (power user!):
http://doc.norang.ca/org-mode.html#sec-3_1

- Lastly, how to do this to just one file (vs. globally in .emacs):
http://orgmode.org/manual/Per_002dfile-keywords.html

I haven't done much with this but did tinker around and it's not very
difficult. You could start with the last link on "per file" TODO states and
see if that works on a test file. Perhaps when you've got your words how you
like them you can define the full set of states that you want to use. You
can define multiple sets so that once you apply a particular TODO state to
an item, it's within a particular work flow. So, you could define one for
your day to day items like TODO -> SCHEDULED -> DONE or whatever and have a
separate sequence for food so if you enter an item as FREEZER (meaning
purchased/in freezer/clock ticking), the next state would be SOON or
something.

Have fun with your project. Sounds cool!

I have no knowledge of capture at present and can't help you out there...
sorry!


John
<http://orgmode.org/manual/Fast-access-to-TODO-states.html#Fast-access-to-TODO-states>

On Sun, Nov 7, 2010 at 4:30 PM, Shelagh Manton <shelagh.manton@gmail.com>wrote:

> I often find that I have lost food items in the botton of my freezer
> that I have to throw out because I've forgotten about them and I'm
> trying to set up an org-mode file that helps prevent that.
>
> I've made a file that lists the articles that I have put into the
> freezer such as different food types that have different freezer-lifes
> (lives?). I have used deadlines for the moment to indicate best before
> dates.
>
> Ideally I would like to have some sort of automated system that alerts
> me in the agenda that I have some sausages or something still in the
> freezer that should be used soon but say a month before the actual
> use-by date. I could see maybe using the SCHEDULED keyword for that. But
> what I would like is that the todo word which is "AVAILABLE" gets changed
> to say SOON (any better choices?) on the day indicated by the SCHEDULED
> date.
>
> Has anyone done something like this or could anyone suggest some code
> that I could study to do this for myself?
>
> Also of course if I change the status from AVAILABLE to USED because I
> have actually taken it out of the freezer, I would like to be able to
> add that Item to another file that could be exported to a shopping
> list. I know I could look at some of the trigger functions that people
> have sent into the mailing list. This I could probably work out myself
> with enough time, but if someone could point me in the right direction I
> would appreciate it.
>
> A generic capture template that would let you add the category of food
> and the use-by date could be automatically inserted eg if it is fish the
> use-by date is automatically +3m from now. I haven't studied the new
> capture templates yet, I still rely on my old remember set up. But would
> the new capture templates be capable of this, especially with some
> accompanying functions?
>
> Just thinking on paper.
>
> Regards
>
> Shelagh
> --
> email: shelagh.manton@gmail.com
>
> BA (Asian Studies) - ANU | Grad Dip IST - UOW
>
> _______________________________________________
> 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
>

[-- Attachment #1.2: Type: text/html, Size: 5636 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

  reply	other threads:[~2010-11-08 15:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-07 22:30 Organising freezers and generating shopping lists Shelagh Manton
2010-11-08 15:43 ` John Hendy [this message]
2010-11-08 16:06   ` Ian Barton

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=AANLkTin6qmFe44Q+zVEijghGaWS4WqyFRKXCJigXL9LS@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=shelagh.manton@gmail.com \
    /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).