From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tim O'Callaghan" Subject: Re: key bindings for quickly setting effort estimates Date: Tue, 3 Nov 2009 13:33:20 +0100 Message-ID: <3d6808890911030433g4696481wfbd0ab76a3c140d0@mail.gmail.com> References: <20091102135230.GD25581@atlantic.linksys.moosehall> <4A61C92B-7A1F-4C63-B3A8-E5956CB0110B@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5IZk-0006u2-B3 for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 07:33:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5IZf-0006rN-6p for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 07:33:27 -0500 Received: from [199.232.76.173] (port=40985 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5IZe-0006r5-8K for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 07:33:22 -0500 Received: from mail-bw0-f215.google.com ([209.85.218.215]:38823) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5IZd-0005iY-PV for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 07:33:21 -0500 Received: by bwz7 with SMTP id 7so7685068bwz.26 for ; Tue, 03 Nov 2009 04:33:20 -0800 (PST) In-Reply-To: <4A61C92B-7A1F-4C63-B3A8-E5956CB0110B@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: org-mode mailing list Would it be possible to add something like this to the "org-fast-tag-selection-include-todo" interface? possibly with a list of properties to select from: org-fast-tag-selection-include-properties '(("EFFORT_All" ?e) ("FOCUS_All" ?f= )) So to select effort of "0:20" i'd type "e 2" or similar? Tim. 2009/11/3 Carsten Dominik : > We do have `org-set-effort', bound to `C-c C-x e'. =A0You can use a prefi= x arg > to get to a value directly. =A0But your approach is faster, if you have t= o do > this a lot. > > - Carsten > > On Nov 2, 2009, at 2:52 PM, Adam Spiers wrote: > >> I found myself needing a quick way of setting effort estimates outside >> column view, and came up with the following: >> >> ;; Zero effort is last (10th) element of global Effort_ALL property >> ;; so that we get zero effort when pressing '0' in the Effort column >> ;; in Column view, since this invokes `org-set-effort' with arg 0, >> ;; which stands for the 10th allowed value. >> (let ((effort-values >> =A0 =A0 =A0(org-property-get-allowed-values nil org-effort-property))) >> =A0(dotimes (effort-index 10) >> =A0 (let* ((effort (nth effort-index effort-values)) >> =A0 =A0 =A0 =A0 =A0(key-suffix (number-to-string >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(if (=3D effort-index 9) 0 (1+ effort-ind= ex)))) >> =A0 =A0 =A0 =A0 =A0(fn-name (concat "org-set-effort-" >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (number-to-string ef= fort-index))) >> =A0 =A0 =A0 =A0 =A0(fn (intern fn-name))) >> =A0 =A0 ;; (message "Binding M-o %s to %s which sets effort to %s" >> =A0 =A0 ;; =A0 =A0 =A0 =A0 =A0key-suffix fn-name effort) >> =A0 =A0 (fset fn `(lambda () >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ,(format "Sets effort to %s." effort) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (interactive) >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (org-set-effort ,(1+ effort-index)))) >> =A0 =A0 (global-set-key (concat "\eo" key-suffix) fn)))) >> >> This assumes that Effort_ALL has 9 non-zero effort values, which in my >> case is conveniently true: >> >> ("0:10" "0:20" "0:30" "1:00" "2:00" "3:00" "4:00" "8:00" "16:00" "0") >> >> Hope this is of interest. >> >> Adam >> >> >> _______________________________________________ >> 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 > > - 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 >