RE: [Orgmode] How to view tasks with certain Property tag in Agenda view

2009-04-28 Thread Varnit Suri
Thanks! This worked!

Varnit
 

-Original Message-
From: Matthew Lundin [mailto:matthew.lun...@valpo.edu] 
Sent: Monday, April 27, 2009 10:25 PM
To: Varnit Suri
Cc: Manish; emacs-orgmode@gnu.org
Subject: Re: [Orgmode] How to view tasks with certain Property tag in
Agenda view

Hi Varnit,

"Varnit Suri"  writes:

> So here's my code:
>
> (setq org-agenda-custom-commands
>   '(("h" "Agenda and Home-related tasks"
>((agenda "" ((org-agenda-skip-function
> '(org-agenda-skip-entry-if 'regexp ":HOME:"
>
> The only problem I 'm left to solve is, that this skips entries with
the
> tag HOME, rather than including them. I 'm only trying a way to do the
> inverse match (ie skip entries that don't match HOME), but I havent
been
> able to nail the syntax.

--8<---cut here---start->8---
(setq org-agenda-custom-commands
  '(("h" "Agenda and Home-related tasks"
 ((agenda "" ((org-agenda-skip-function
 '(org-agenda-skip-entry-if 'notregexp ":HOME:"
--8<---cut here---end--->8---

I think this should do it.

Regards,   
Matt


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


[Orgmode] Fast tag selection: defining multiple-key shortcutst

2009-04-28 Thread Varnit Suri
Hi all,

I am just wondering if there 's a way to define two characters (rather
than one) for the fast tag selection.

Here's what I did:

(setq org-tag-alist '(("HOME" . ?h)
  ("FAMILY" . "fa")
  ("MONEY" . "mo")
  ("BILLS" . "bi")))

So HOME can be inserted using an 'h', but FAMILY using 'fa'. I 'm trying
to do this coz I have way too many tags that start with the same letter,
so multiple characters are more intuitive.

Any ideas?


Thanks,

Varnit
 



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


RE: [Orgmode] How to view tasks with certain Property tag in Agenda view

2009-04-27 Thread Varnit Suri
Ok, I went through Matt Lundin's agenda file. While he doesn't do what I
was trying to, it did give me a hint about how to implement a simple
grep on every Agenda entry, and then include only the lines that match a
certain criteria, as part of the main Agenda view.

(The current problem with the examples in the two links below is that
they display the entire Agenda, and then the matching tags separately).

So here's my code:

(setq org-agenda-custom-commands
  '(("h" "Agenda and Home-related tasks"
 ((agenda "" ((org-agenda-skip-function
'(org-agenda-skip-entry-if 'regexp ":HOME:"

The only problem I 'm left to solve is, that this skips entries with the
tag HOME, rather than including them. I 'm only trying a way to do the
inverse match (ie skip entries that don't match HOME), but I havent been
able to nail the syntax.

Any ideas?

Thanks,

Varnit
 

-Original Message-
From: Manish [mailto:mailtomanish.sha...@gmail.com] 
Sent: Tuesday, April 21, 2009 12:12 AM
To: Varnit Suri
Cc: emacs-orgmode@gnu.org
Subject: Re: [Orgmode] How to view tasks with certain Property tag in
Agenda view


  On Tue, Apr 21, 2009 at 6:11 AM, Varnit Suri wrote:
  > Thanks. I agree this is prolly a better approach.
  >
  > I did get things to work (see code in post-script) a bit using
  > your suggestion and:
  > http://orgmode.org/manual/Block-agenda.html#Block-agenda
  > http://orgmode.org/manual/Storing-searches.html#Storing-searches
  >
  > But maybe I wasn't clear enough in describing what I 'm trying to
  > do.
  >
  > I 'd like to parse the weekly Agenda (C-c a a) to show only those
  > items that meet the specified criteria (eg, certain tags,
  > todo-tags, or properties). The advantage is that that shows the
  > relevant items, will complete details of dates, etc. Its sort of
  > running a grep on the weekly Agenda output.
  >
  > Any ideas are appreciated.

Have you seen http://orgmode.org/worg/org-customization-survey.php ?
Check out Matthew Lundin's agenda customizations in particular.  It
the awesomest use of agenda customization that I have ever seen.

-- 
Manish


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


RE: [Orgmode] How to view tasks with certain Property tag in Agenda view

2009-04-20 Thread Varnit Suri
Thanks. I agree this is prolly a better approach.

I did get things to work (see code in post-script) a bit using your suggestion 
and:
http://orgmode.org/manual/Block-agenda.html#Block-agenda 
http://orgmode.org/manual/Storing-searches.html#Storing-searches 

But maybe I wasn't clear enough in describing what I 'm trying to do. 

I 'd like to parse the weekly Agenda (C-c a a) to show only those items that 
meet the specified criteria (eg, certain tags, todo-tags, or properties). The 
advantage is that that shows the relevant items, will complete details of 
dates, etc. Its sort of running a grep on the weekly Agenda output.

Any ideas are appreciated.

V.

PS: The two custom searches that I coded up are:

(setq org-agenda-custom-commands
 '(("h" "Agenda for context Home"
 ((agenda "")
  (tags "HOME")

(setq org-agenda-custom-commands
 '(("h" "Agenda for context Home" agenda (tags "HOME"


-Original Message-
From: Manish [mailto:mailtomanish.sha...@gmail.com] 
Sent: Sunday, April 19, 2009 9:24 PM
To: Varnit Suri
Cc: emacs-orgmode@gnu.org
Subject: Re: [Orgmode] How to view tasks with certain Property tag in Agenda 
view

FWIW, I use tags to  mark contexts and filtering on tags is really
really fast and flexible.

-- 
Manish

On Mon, Apr 20, 2009 at 6:40 AM, Varnit Suri  wrote:
> Hi all,
>
> I am using the PROPERTY keyword to identify contexts (in the GTD
> approach). So here's a sample of what I do:
>
> * Online
>  :PROPERTIES:
>  :CATEGORY: Computer
>  :END:
> ** TODO Call/reply to A
> ** TODO Defrag work PC
>
> The Agenda view that I see is below (Home, Computer, Work are PROPERTY
> tags).
>
> What I 'd like to do is:
> 1. View tasks with only a specified PROPERTY tag.
> 2. View the main task (if this task is a sub-task) in the Agenda view.
>
> So in the above example, I 'm trying to see something like.
>
> Computer: Online [current output]
>
> Any comments are appreciated. Thanks.
>
> Current output:
>
> Week-agenda (W16-W17):
> Sunday     19 April 2009
>  Home:       Sched. 2x:  TODO ETrade debit card
>  Home:       In -24 d.:  TODO Respond to DMV Ticket
>  Computer:     Sched. 2x:  TODO Incorporate category tags
>  Work:     Scheduled:  TODO Defrag work PC
>
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>


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


[Orgmode] How to view tasks with certain Property tag in Agenda view

2009-04-19 Thread Varnit Suri
Hi all,

I am using the PROPERTY keyword to identify contexts (in the GTD
approach). So here's a sample of what I do:

* Online
  :PROPERTIES:
  :CATEGORY: Computer
  :END:
** TODO Call/reply to A
** TODO Defrag work PC

The Agenda view that I see is below (Home, Computer, Work are PROPERTY
tags).

What I 'd like to do is:
1. View tasks with only a specified PROPERTY tag.
2. View the main task (if this task is a sub-task) in the Agenda view.

So in the above example, I 'm trying to see something like.
 
Computer: Online [current output] 

Any comments are appreciated. Thanks.

Current output:

Week-agenda (W16-W17):
Sunday 19 April 2009
  Home:   Sched. 2x:  TODO ETrade debit card
  Home:   In -24 d.:  TODO Respond to DMV Ticket
  Computer: Sched. 2x:  TODO Incorporate category tags
  Work: Scheduled:  TODO Defrag work PC



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


RE: [Orgmode] GTD question - how to create Reference and Ticker files

2009-04-18 Thread Varnit Suri
Thanks Manish and Matt.

I read Charles' recently updated article too:

http://members.optusnet.com.au/~charles57/GTD/gtd_workflow.html

I think category and task tags suffice as far as creating a Tickler list
is concerned. 

The only implementation for the Reference that I could think of was to
do something similar: have a separate file with category and context
tags, and just log all info there (links, etc).

I agree - some info may be project specific and so you could have
project-specific reference files too, though searching them may become a
problem.

Any other ideas?

V.


-Original Message-
From: Manish [mailto:mailtomanish.sha...@gmail.com] 
Sent: Friday, April 17, 2009 10:02 PM
To: Varnit Suri
Cc: emacs-orgmode@gnu.org
Subject: Re: [Orgmode] GTD question - how to create Reference and Ticker
files

On Fri, Apr 17, 2009 at 9:53 PM, Varnit Suri wrote:
> Hello,
>
> I 'm trying to implement the Getting Things Done approach using
Org-mode
> (like many others!).
>
> I 've been thinking of the best way to implement GTD's Reference and
> Tickler folders in Org-mode. I have a few thoughts of my own, but
wanted
> to check with the community, in case anyone else has a better
solution.
>
> My solutions are pretty 'raw' - just a text file (with links, etc) for
> the Reference and a Someday list for the Tickler. Anyone else has more
> sophisticated solutions? Any comments are appreciated.

I also looked around for the "best way" for a long time but I guess
what fits one's mind may not fit others'.  With that said, Charles
Cave published an excellent article on the subject recently.. please
check out the Worg.  There's been discussions on the very subject in
the past.. please check out the list archives as well.

IMHO, you do not need a separate tickler file since your
agenda/project files can contain timestamped tasks and deadlines and
that's your tickler.  Someday file can also be implemented by either
using a SOMEDAY todo keyword or a SOMEDAY tag.  I keep project specfic
references within the project subtree and general purpose references
in a notes.org file with NOTES and WEBLINKS headings.  Org has excellent
search facilities as well to scan through these.

HTH
-- 
Manish


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


[Orgmode] GTD question - how to create Reference and Ticker files

2009-04-17 Thread Varnit Suri
Hello,

I 'm trying to implement the Getting Things Done approach using Org-mode
(like many others!). 

I 've been thinking of the best way to implement GTD's Reference and
Tickler folders in Org-mode. I have a few thoughts of my own, but wanted
to check with the community, in case anyone else has a better solution.

My solutions are pretty 'raw' - just a text file (with links, etc) for
the Reference and a Someday list for the Tickler. Anyone else has more
sophisticated solutions? Any comments are appreciated.

Thanks,
V.



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


[Orgmode] RE: Help with binding new key to change task state

2009-02-17 Thread Varnit Suri
Thanks. This worked!

-Original Message-
From: Bernt Hansen [mailto:be...@norang.ca] 
Sent: Monday, February 16, 2009 7:34 AM
To: Varnit Suri
Cc: emacs-orgmode@gnu.org
Subject: Re: Help with binding new key to change task state

You could do something like this: (pick your favourite key)

(global-set-key (kbd "") (lambda () (interactive) (org-todo 3)))

For me my DONE state is the 3rd state.  Find the prefix for the state
you want (C-3 C-c C-t goes directly to DONE for me) and provide that
value as the argument for org-todo.

Then just C-f6 (or whatever key you like) and you're DONE. :)

HTH,
-Bernt


"Varnit Suri"  writes:

> Thanks for your reply. The first trick worked fine.
>
> For the second problem though, I 'd not like to cycle through the
> states. That's coz each time I change the state, I have to log it.
>
> So I am trying to define a single key that lets me jump straight to
the
> DONE state (from any other state). C-c C-t C-c works okay coz the last
> 'c' chooses the DONE state from the menu.
>
> Any ideas how I can define a simpler key for this? Thanks.
>
> V.
>
>
> -Original Message-
> From: Bernt Hansen [mailto:be...@norang.ca] 
> Sent: Sunday, February 15, 2009 6:52 PM
> To: Varnit Suri
> Cc: emacs-orgmode@gnu.org
> Subject: Re: Help with binding new key to change task state
>
> "Varnit Suri"  writes:
>
>> The org manual talks about using C-u C-c C-t to change the state of a
>> task. This command nicely throws up a list of several intermediate
>> states to choose from. In addition, I have logging turned on, so each
>> time I do this, I can log a note about the state change.
>>
>> I am merely trying to bind this to a simpler set of keys. I know C-c
> C-t
>> is bound to org-todo, but can't figure out what C-u C-c C-t binds to
>> (describe-key stops at C-u). Or then, maybe I don't know Emacs/Org
> well
>> enough yet. Any suggestions?
>
> C-c C-t and C-u C-c C-t both bind to the same function.  The C-u just
> provides a prefix value of 4 to the function so it can behave
> differently (displaying the menu of todo choices)
>
> You probably want to set 
>
> (setq org-use-fast-todo-selection t)
>
> so that C-c C-t shows the menu by default.
>
>>
>> The second thing I am trying to do is have a shortcut to take a task
>> from TODO to DONE without going through the above process.
>
> If you have your todo states defined in sequences you can use S-left
> arrow and S-right arrow to cycle between the states quickly.
>
> I use the following TODO settings:
>
> (setq org-todo-keywords '((sequence "TODO(t)" "STARTED(s!)" "|"
> "DONE(d!/!)")
> (sequence "WAITING(w@/!)" "SOMEDAY(s)" "|"
> "CANCELLED(c@/!)")
> (sequence "QUOTATION(q!)" "QUOTED(Q!)" "|"
> "APPROVED(A@)" "EXPIRED(E@)" "REJECTED(R@)")
> (sequence "OPENPO(O!)" "|" "CLOSEDPO(C@)")
> (sequence "|" "NOTE(n)" "PHONE(T)")))
>
> so if I have a task
>
> * TODO Do something
>
> then S-right arrow moves to STARTED and a second time moves to DONE
>
> HTH,
> Bernt


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


[Orgmode] RE: Help with binding new key to change task state

2009-02-15 Thread Varnit Suri
Thanks for your reply. The first trick worked fine.

For the second problem though, I 'd not like to cycle through the
states. That's coz each time I change the state, I have to log it.

So I am trying to define a single key that lets me jump straight to the
DONE state (from any other state). C-c C-t C-c works okay coz the last
'c' chooses the DONE state from the menu.

Any ideas how I can define a simpler key for this? Thanks.

V.


-Original Message-
From: Bernt Hansen [mailto:be...@norang.ca] 
Sent: Sunday, February 15, 2009 6:52 PM
To: Varnit Suri
Cc: emacs-orgmode@gnu.org
Subject: Re: Help with binding new key to change task state

"Varnit Suri"  writes:

> The org manual talks about using C-u C-c C-t to change the state of a
> task. This command nicely throws up a list of several intermediate
> states to choose from. In addition, I have logging turned on, so each
> time I do this, I can log a note about the state change.
>
> I am merely trying to bind this to a simpler set of keys. I know C-c
C-t
> is bound to org-todo, but can't figure out what C-u C-c C-t binds to
> (describe-key stops at C-u). Or then, maybe I don't know Emacs/Org
well
> enough yet. Any suggestions?

C-c C-t and C-u C-c C-t both bind to the same function.  The C-u just
provides a prefix value of 4 to the function so it can behave
differently (displaying the menu of todo choices)

You probably want to set 

(setq org-use-fast-todo-selection t)

so that C-c C-t shows the menu by default.

>
> The second thing I am trying to do is have a shortcut to take a task
> from TODO to DONE without going through the above process.

If you have your todo states defined in sequences you can use S-left
arrow and S-right arrow to cycle between the states quickly.

I use the following TODO settings:

(setq org-todo-keywords '((sequence "TODO(t)" "STARTED(s!)" "|"
"DONE(d!/!)")
  (sequence "WAITING(w@/!)" "SOMEDAY(s)" "|"
"CANCELLED(c@/!)")
  (sequence "QUOTATION(q!)" "QUOTED(Q!)" "|"
"APPROVED(A@)" "EXPIRED(E@)" "REJECTED(R@)")
  (sequence "OPENPO(O!)" "|" "CLOSEDPO(C@)")
  (sequence "|" "NOTE(n)" "PHONE(T)")))

so if I have a task

* TODO Do something

then S-right arrow moves to STARTED and a second time moves to DONE

HTH,
Bernt


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


[Orgmode] Help with binding new key to change task state

2009-02-15 Thread Varnit Suri
Hi all,

The org manual talks about using C-u C-c C-t to change the state of a
task. This command nicely throws up a list of several intermediate
states to choose from. In addition, I have logging turned on, so each
time I do this, I can log a note about the state change.

I am merely trying to bind this to a simpler set of keys. I know C-c C-t
is bound to org-todo, but can't figure out what C-u C-c C-t binds to
(describe-key stops at C-u). Or then, maybe I don't know Emacs/Org well
enough yet. Any suggestions?

The second thing I am trying to do is have a shortcut to take a task
from TODO to DONE without going through the above process.

Thanks,

V.


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


[Orgmode] Setting recurring deadlines

2009-02-09 Thread Varnit Suri
Hi all,

I am having trouble with something pretty basic. I am trying to setup a
recurring deadline on the last day of every month. However, when I set
it as <2009-02-28 +1m>, the next deadline shows up at 2009-03-28, rather
than 31st March.

I don't use appt/diary. Is there a way to do this in org-mode? Any
comments are appreciated. Thanks.

V.



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


[Orgmode] RE: Problem logging state change for TODO's

2009-02-09 Thread Varnit Suri
Thanks! The instructions in org manual worked.

-Original Message-
From: Memnon Anon [mailto:gegendosenflei...@googlemail.com] 
Sent: Monday, February 09, 2009 1:47 AM
To: Varnit Suri
Cc: emacs-orgmode@gnu.org
Subject: Re: Problem logging state change for TODO's

Hi!

"Varnit Suri"  writes:

> I am a fairly new user of Org-mode, and I 'm using v6.20i. I read
about
> how to log a note each time I change the state of a TODO item
>
(http://www.gnu.org/software/emacs/manual/html_node/org/Tracking-TODO-st
> ate-changes.html#Tracking-TODO-state-changes).
[...]
> Am I missiing something? Sorry, can't figure this one out.

Just one thing: Org-Mode is developed very fast ;)

>From your link: This manual is for Org-mode (version 4.67).
 ^
So, best to use the documentation that came with your version,
or, always the newest, that from orgmode.org.

hth.

Memnon



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


[Orgmode] Problem logging state change for TODO's

2009-02-08 Thread Varnit Suri
Hello everyone,

I am a fairly new user of Org-mode, and I 'm using v6.20i. I read about
how to log a note each time I change the state of a TODO item
(http://www.gnu.org/software/emacs/manual/html_node/org/Tracking-TODO-st
ate-changes.html#Tracking-TODO-state-changes).

And I did both the things recommended in the link above. However, I am
not prompted for a note each time I change the task state, even when
going to done.

Am I missiing something? Sorry, can't figure this one out.

Thanks for your time.
Nick.


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