Re: [Orgmode] FR: interactive todo creation with remember templates

2008-01-25 Thread Hugo Schmitt
Perfect! Thanks
- Hugo

On Jan 25, 2008 10:58 AM, Carsten Dominik [EMAIL PROTECTED] wrote:


 On Jan 24, 2008, at 5:37 PM, Hugo Schmitt wrote:

  I think my suggestion doesn't fit orgmode that well, but what if
  'org-remember' had 'template' as an optonal argument? (instead of
  pulling from org-remember-template interactively).
 
  Then people could write their own menus/keymap/etc before calling
  remember.
  (Hmm, thinking about it, maybe i'll try that myself so i can call
  remember from Anything)

 If you are wiling to  write lisp code, you can already do this, by
 putting
 a list with only one template temporarily into org-remember-templates,
 like this:

 (let ((org-remember-templates
(Task 116 * TODO %?\n  %u ~/org/gtd.org Tasks)))
   (call-interactively 'org-remember))

 When there is only a single template in the list, Org-mode will actually
 skip the query for the template and execute it right away.

 So yes, you can write a function that does built a template on the fly.

 Hope this helps

 - Carsten


___
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] FR: interactive todo creation with remember templates

2008-01-25 Thread Carsten Dominik


On Jan 24, 2008, at 5:37 PM, Hugo Schmitt wrote:


I think my suggestion doesn't fit orgmode that well, but what if
'org-remember' had 'template' as an optonal argument? (instead of
pulling from org-remember-template interactively).

Then people could write their own menus/keymap/etc before calling  
remember.

(Hmm, thinking about it, maybe i'll try that myself so i can call
remember from Anything)


If you are wiling to  write lisp code, you can already do this, by  
putting

a list with only one template temporarily into org-remember-templates,
like this:

(let ((org-remember-templates
   (Task 116 * TODO %?\n  %u ~/org/gtd.org Tasks)))
  (call-interactively 'org-remember))

When there is only a single template in the list, Org-mode will actually
skip the query for the template and execute it right away.

So yes, you can write a function that does built a template on the fly.

Hope this helps

- Carsten



___
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] FR: interactive todo creation with remember templates

2008-01-24 Thread Carsten Dominik


On Jan 22, 2008, at 3:55 PM, Austin Frank wrote:


Hello again!

I love all of the options that are available for inclusion in remember
templates.  I've got templates for the kinds of tasks I create most
often.  But sometimes I find myself saying man, I wish I could just
tack a %^G onto this template, or something similar.  These aren't  
task

types that I use often enough to justify giving them their own
templates, but I still want to have access to the features offered in
remember templates.

Would it be possible to build a single-use remember template through
prompts at the minibuffer?



I am not yet convinced about how useful this would be.

First of all, slapping on a %^G means adding tags.  Since you
probably have %? in the headline of the template anyway, adding tags
is as simple as C-c C-c Ahm, no you are right it is not, because  
we are

in a remember buffer after all.

Still, just adding % sequences does not really do it because
you still need to decide where the info should go.  So in the end, it
seems to me the the gain will be very minor.  Any other opinions?

- Carsten



___
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] FR: interactive todo creation with remember templates

2008-01-24 Thread Hugo Schmitt
I think my suggestion doesn't fit orgmode that well, but what if
'org-remember' had 'template' as an optonal argument? (instead of
pulling from org-remember-template interactively).

Then people could write their own menus/keymap/etc before calling remember.
(Hmm, thinking about it, maybe i'll try that myself so i can call
remember from Anything)

-Hugo

On Jan 24, 2008 12:33 PM, Carsten Dominik [EMAIL PROTECTED] wrote:

 On Jan 22, 2008, at 3:55 PM, Austin Frank wrote:

  Hello again!
 
  I love all of the options that are available for inclusion in remember
  templates.  I've got templates for the kinds of tasks I create most
  often.  But sometimes I find myself saying man, I wish I could just
  tack a %^G onto this template, or something similar.  These aren't
  task
  types that I use often enough to justify giving them their own
  templates, but I still want to have access to the features offered in
  remember templates.
 
  Would it be possible to build a single-use remember template through
  prompts at the minibuffer?


 I am not yet convinced about how useful this would be.

 First of all, slapping on a %^G means adding tags.  Since you
 probably have %? in the headline of the template anyway, adding tags
 is as simple as C-c C-c Ahm, no you are right it is not, because
 we are
 in a remember buffer after all.

 Still, just adding % sequences does not really do it because
 you still need to decide where the info should go.  So in the end, it
 seems to me the the gain will be very minor.  Any other opinions?

 - Carsten



 ___
 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