Re: [Orgmode] Org capture with predefined entries from a list?

2010-09-22 Thread Bastien
Hi Miguel,

Miguel Ruiz rbeni...@yahoo.es writes:

 You should explore using multiple keys for the capture template
 definition -- see the manual:

 Do you mean I should generate all the combinations and assign a
 template to each one? 

Yes.

 Can you provide any kind of minimal example? 

(setq org-capture-templates
  '((l LifeHacking)  
(lw LifeHacking write something) 
(lw+ LH write something clever entry
   (file+headline ~/org/bzg.org LifeHacking)
   * INPROGRESS My new clever writing\n\n%? :prepend t)
(lw- LH write something stupid entry
   (file+headline ~/org/bzg.org LifeHacking)
   * INPROGRESS My new stupid writing\n\n%? :prepend t)))

M-x org-capture RET will let you select the l menu entry for
LifeHacking, then the w menu entry which is more specific, etc.  
You can easily emulate the example you gave in your previous email.

HTH,

-- 
 Bastien

___
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


Re: [Orgmode] Org capture with predefined entries from a list?

2010-09-21 Thread Bastien
Hi Miguel,

Miguel Ruiz rbeni...@yahoo.es writes:

 1. In any buffer: M-x org-capture
 2. Appears a menu saying Select a capture template. Of course, two options 
 [t] and [j], and [C] Customize org-capture-templates and [q] Abort.
 3. I press [t] and get a capture buffer with * TODO inserted, ready to 
 accept my entry
 4. Appears another menu saying Select task type or whatever: several 
 options: [1] Task1 [2] Task2 [3] Task3 ...
 5. I press [1] and  capture buffer updates with * TODO Task1 inserted, 
 ready to accept more info
 6. Ideally appears another menu saying Select comment or whatever: several 
 options: [1] Comment1 [2] Comment2 [3] Comment3 ...
 7. I press [1] and  capture buffer updates with * TODO Task1 Comment1 
 inserted, ready to accept more info
 8. Ideally steps 6 and 7 would be repeated (well, no more than 4 or 5 times)
 4. C-c C-c finish and save the entry in ~/org/gtd.org

Do you really want capturing a task to be such a heavy task?!

You should explore using multiple keys for the capture template
definition -- see the manual:

  http://orgmode.org/manual/Template-elements.html#Template-elements

HTH,

-- 
 Bastien

___
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


Re: [Orgmode] Org capture with predefined entries from a list?

2010-09-21 Thread Miguel Ruiz


--- El mié, 22/9/10, Bastien bastien.gue...@wikimedia.fr escribió:

 De: Bastien bastien.gue...@wikimedia.fr
 Asunto: Re: [Orgmode] Org capture with predefined entries from a list?
 Para: Miguel Ruiz rbeni...@yahoo.es
 CC: emacs-orgmode@gnu.org
 Fecha: miércoles, 22 de septiembre, 2010 01:00
 Hi Miguel,
 
 Miguel Ruiz rbeni...@yahoo.es
 writes:
 
  1. In any buffer: M-x org-capture
  2. Appears a menu saying Select a capture template.
 Of course, two options [t] and [j], and [C] Customize
 org-capture-templates and [q] Abort.
  3. I press [t] and get a capture buffer with *
 TODO inserted, ready to accept my entry
  4. Appears another menu saying Select task type or
 whatever: several options: [1] Task1 [2] Task2 [3] Task3
 ...
  5. I press [1] and  capture buffer updates with
 * TODO Task1 inserted, ready to accept more info
  6. Ideally appears another menu saying Select comment
 or whatever: several options: [1] Comment1 [2] Comment2 [3]
 Comment3 ...
  7. I press [1] and  capture buffer updates with
 * TODO Task1 Comment1 inserted, ready to accept more info
  8. Ideally steps 6 and 7 would be repeated (well, no
 more than 4 or 5 times)
  4. C-c C-c finish and save the entry in ~/org/gtd.org
 
 Do you really want capturing a task to be such a heavy
 task?!

Actually, yes, I want, because steps 4, 6 and 8 contain long lists hard to 
remember, and I want to guarantee exactly the inserted strings are one of the 
included in the lists.

In the original post, I said that I could manage with 2-3 keybindings that 
show, each, a list to choose and insert the entry, but I am not sure how to do 
it.


 
 You should explore using multiple keys for the capture
 template
 definition -- see the manual:

Do you mean I should generate all the combinations and assign a template to 
each one? Can you provide any kind of minimal example? 

 
   http://orgmode.org/manual/Template-elements.html#Template-elements
 
 HTH,
 
 -- 
  Bastien
 
 ___
 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
 


 

___
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


Re: [Orgmode] Org capture with predefined entries from a list?

2010-09-13 Thread Nicolas Goaziou
Hello,

 Miguel Ruiz writes:

 Might I implement an org capture template with predefined entries
 from a list instead of typing the final entry?

 If not, please, whats the minimal code to get a shortkey to launch a
 selection of an item of a list and insert in the buffer?

I am not sure to understand what you are trying to accomplish. Could
you provide an example about it?

Regards,

-- Nicolas

___
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


Re: [Orgmode] Org capture with predefined entries from a list?

2010-09-13 Thread Miguel Ruiz
Thank you for your interest.

First: org.el 7/9/2010, org-capture.el 2/9/2010

Contents of .emacs:

(...)
(setq org-capture-templates
  '((t Todo entry (file+headline ~/org/gtd.org Tasks)
 * TODO %?\n  %i\n  %a)
(j Journal entry (file+datetree ~/org/journal.org)
 * %?\nEntered on %U\n  %i\n  %a)))
(...)

So, let's start:

1. In any buffer: M-x org-capture
2. Appears a menu saying Select a capture template. Of course, two options 
[t] and [j], and [C] Customize org-capture-templates and [q] Abort.
3. I press [t] and get a capture buffer with * TODO inserted, ready to 
accept more info
4. C-c C-c finish and save the entry in ~/org/gtd.org

Ok. That's what I would like:

1. In any buffer: M-x org-capture
2. Appears a menu saying Select a capture template. Of course, two options 
[t] and [j], and [C] Customize org-capture-templates and [q] Abort.
3. I press [t] and get a capture buffer with * TODO inserted, ready to 
accept my entry
4. Appears another menu saying Select task type or whatever: several options: 
[1] Task1 [2] Task2 [3] Task3 ...
5. I press [1] and  capture buffer updates with * TODO Task1 inserted, 
ready to accept more info
6. Ideally appears another menu saying Select comment or whatever: several 
options: [1] Comment1 [2] Comment2 [3] Comment3 ...
7. I press [1] and  capture buffer updates with * TODO Task1 Comment1 
inserted, ready to accept more info
8. Ideally steps 6 and 7 would be repeated (well, no more than 4 or 5 times)
4. C-c C-c finish and save the entry in ~/org/gtd.org


In the original post I said that if not possible, I would be happy with a 
shortkey launching a buffer showing the options of step 4, then I would select 
one of them and it would inserted after * TODO

I hope now it is more clear.

Miguel





___
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


[Orgmode] Org capture with predefined entries from a list?

2010-09-11 Thread Miguel Ruiz
Hi

Might I implement an org capture template with predefined entries from a list 
instead of typing the final entry?

If not, please, whats the minimal code to get a shortkey to launch a selection 
of an item of a list and insert in the buffer?

Thank you. My questions has always been well treated in this list. I am 
learning a lot with all the people here.

Miguel.




___
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