From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Best way to implement project specific captures Date: Thu, 23 Aug 2012 12:36:06 +0200 Message-ID: <84119130-9EE5-4516-B230-AB578DF615FB@gmail.com> References: <878vd79en7.fsf@altern.org> <874nnv9ekc.fsf@altern.org> <87a9xmyns1.fsf@altern.org> Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4Ulr-0007wo-CI for emacs-orgmode@gnu.org; Thu, 23 Aug 2012 06:36:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4Ulk-0006xu-8D for emacs-orgmode@gnu.org; Thu, 23 Aug 2012 06:36:15 -0400 Received: from ezel.ic.uva.nl ([146.50.108.158]:51585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4Ulj-0006xg-Vw for emacs-orgmode@gnu.org; Thu, 23 Aug 2012 06:36:08 -0400 In-Reply-To: <87a9xmyns1.fsf@altern.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Sylvain Rousseau , emacs-orgmode@gnu.org Hi Sylvain and Bastien, this is an interesting idea! I am wondering if the following feature would be useful as well: = Context sensitivity sounds most interesting to me if the same key would = do different things in different contexts. I am not sure if this is = possible with the current implementation? For example, I might want to = have a bug recording key which creates an entry in a bug tracker file, = but the file is different for different source files, and also the = template and target type definitions might be different in different = contexts. That would require a setup which defines a selection letter, and then an = a list of (sets of) conditions and the corresponding template = definition. Or am I going overboard here? - Carsten On 23 aug. 2012, at 11:13, Bastien wrote: > Sylvain Rousseau writes: >=20 >>> One possible enhancement: allow using only the capture/agenda >>> template instead of the full template in >> `org-context-capture-alist' >>> and `org-context-agenda-alist'. >>=20 >> Good idea! Adding it to my todo list with org-context ;-) >=20 > Actually I love your idea so much I just implemented it in core. >=20 > See these new options: >=20 > org-agenda-custom-commands-contexts > org-capture-templates-contexts >=20 > The basic idea is the same than yours, except you only need to > define rules for the agenda/capture keys. It's also extending > the notion of context by allowing to check against modes, not > only files. >=20 > Please let me know what do you think. And thanks again for this > simple and beautiful idea. >=20 > --=20 > Bastien >=20 - Carsten