I have exactly 386 TODO entries and may as well introduce some randomness to get to them. org-random-entry: select and goto a random todo entry. Prefix allows you to select which todo keyword. https://gist.github.com/4343164
Tony Day writes:
> I have exactly 386 TODO entries and may as well introduce some
> randomness to get to them.
>
> org-random-entry: select and goto a random todo entry. Prefix allows you
> to select which todo keyword.
>
> https://gist.github.com/4343164
Thanks, I'm using this already. One less decision to make...
Myles
Hi Tony, Tony Day <tonyday567@gmail.com> writes: > I have exactly 386 TODO entries and may as well introduce some > randomness to get to them. > > org-random-entry: select and goto a random todo entry. Prefix allows you > to select which todo keyword. I added an entry in org-hacks.org: http://orgmode.org/worg/org-hacks.html#sec-1-1-1 Thanks! -- Bastien
>
> I added an entry in org-hacks.org:
> http://orgmode.org/worg/org-hacks.html#sec-1-1-1
I never knew about the org-hacks section.
*adds a TODO*
Hi Tony, At Thu, 20 Dec 2012 16:43:37 +1100, Tony Day wrote: > > org-random-entry: select and goto a random todo entry. Prefix allows you > to select which todo keyword. > > https://gist.github.com/4343164 love that idea! However, I accidentally tried org-random-entry after org-agenda-exit and got following: debug(error (error "Selecting deleted buffer")) org-compile-prefix-format(todo) (catch (quote exit) (org-compile-prefix-format (quote todo))... (let* ((today (org-today)) (date (calendar-.... org-random-entry(nil) call-interactively(org-random-entry record nil) this is because org-compile-prefix-format assumed to have org-agenda-buffer set either 'nil' or 'live buffer', but not '#<killedbuffer>'. I'm not sure it is good idea to fix the org-compile-prefix-format itself or not. so I came up with the following fix: diff --git a/dotemacs.org b/dotemacs.org index 302ac53..c4042a1 100644 --- a/dotemacs.org +++ b/dotemacs.org @@ -9,6 +9,8 @@ (kwds org-todo-keywords-for-agenda) (lucky-entry nil) (completion-ignore-case t) + (org-agenda-buffer (if (buffer-live-p org-agenda-buffer) + org-agenda-buffer)) (org-select-this-todo-keyword (if (stringp arg) arg (and arg (integerp arg) (> arg 0) What do you think? regards, -- yashi
Yasushi SHOJI writes: > + (org-agenda-buffer (if (buffer-live-p org-agenda-buffer) > + org-agenda-buffer)) ----------------------------------^ This should be a "when" form since there's no else clause. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
updated. thanks guys and gals :) https://gist.github.com/4343164 tony day tonyday567@gmail.com On 7 Jan 2013, at 18:16, Achim Gratz <Stromeko@nexgo.de> wrote: > Yasushi SHOJI writes: >> + (org-agenda-buffer (if (buffer-live-p org-agenda-buffer) >> + org-agenda-buffer)) > ----------------------------------^ > > This should be a "when" form since there's no else clause. > > > Regards, > Achim. > -- > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ > > Wavetables for the Waldorf Blofeld: > http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables > >