Re: [O] Non-scheduled repeating tasks

2014-05-23 Thread Albin Stjerna
Thanks! I'll look into that. :)

On 23 May 2014 07:52, Bastien  wrote:
> Hi Albin,
>
> Albin Stjerna  writes:
>
>> 1. Has something like this been attempted by anyone else before?
>
> No -- but there are regular feature requests around making repeaters
> more flexible.  I hope I can enhance this for 8.4 (or 9.0.)
>
>> 2. Which org-mode hooks would be a good place to start integrating
>> something that would both potentially block TODO transitions and have
>> to read/write properties and/or special drawers in org-mode?
>
> You can cook something from `org-after-todo-state-change-hook'.
>
> Put the repeat value in a property, decrease it each time a task is
> done until the repeater value is 0.  Displaying the repeater value can
> be done in column mode.
>
> That's for the first part of this feature -- the one with blocking
> TODOs, see `org-blocker-hook' and `org-trigger-hook'.  Not sure it
> will help though.
>
> See also the manual on adding properties (i.e. `org-entry-put') and
> hacking Org in general.
>
> HTH,
>
> --
>  Bastien



[O] Non-scheduled repeating tasks

2014-05-05 Thread Albin Stjerna
Hi,

I've been thinking about how to integrate tasks which are to some
extent tracked elsewhere into my org-mode workflow, such as for
example "read N chapter of book A" or "watch K video lectures at X".

I'd like a way to describe in org-mode that a task should be completed
a number of times, and then have org-mode let the task recur a number
of times, possibly with a cool-down period (but that's not really
necessary). The normal progress cookies % and / would preferrably be
used to indicate progress in the TODO headings themselves.

1. Has something like this been attempted by anyone else before?
2. Which org-mode hooks would be a good place to start integrating
something that would both potentially block TODO transitions and have
to read/write properties and/or special drawers in org-mode? At first,
I thought that the problem could be trivially solved with the
org-blocker-hook, but I realised that it said it shouldn't update the
org buffers, and my function needs to in order to update the state for
blocked tasks (e.g. increment the counter).

Thanks in advance!
  Albin



[Orgmode] Using org-protocol to (org-)capture files for read/review?

2011-02-24 Thread Albin Stjerna
Hello, notmuch-org!

I'm using org-mode to structure most of my life, but I haven't been able
to incorporate my list of PDFs (or other documents) to read/review in
org-mode, so currently I'm just putting them in ~/read-review.

However, I thought I'd use org-protocol and emacsclient to add links to
these files to org-mode, but I'm unable to figure out how to do it. I'd
like to map the full path to a file, and then have that file appended to
a plain list in a given org file with the TODO tag set (something like
»* TODO [[file:/path/to/filename.pdf]]«) given a run of »emacsclient
org-protocol:/capture:/r/path/to/filename.pdf/«.

I can then implement pushing to my read/review stack with a simple shell
command that a) moves the new file to ~/read-review and b) adds a link
to the file on my org-mode read/review stack using the above mentioned
emacsclient command.
 
So far, I've tried adding the following to org-capture-templates:
 ("r" "read/review" entry (file "~/org/read-review.org")
  "* TODO read %c"
  :immediate-finish t)

Obviously »%c« wrong here -- but what should I replace it with?

Thanks in advance,
  Albin

PS. Sorry if I've insufficiently R:d TFM, but I really did try.

___
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