From mboxrd@z Thu Jan 1 00:00:00 1970 From: Memnon Anon Subject: reuse input (was: New implementation of the Org remember process ready for comments and testing) Date: Wed, 23 Jun 2010 14:24:57 +0200 Message-ID: <87zkymrlmj.fsf@mean.albasani.net> References: <87aaqm8y5n.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=35303 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORP0r-0003sq-5O for emacs-orgmode@gnu.org; Wed, 23 Jun 2010 08:25:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORP0p-0004Hv-Um for emacs-orgmode@gnu.org; Wed, 23 Jun 2010 08:25:05 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:62929) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORP0p-0004Hk-QO for emacs-orgmode@gnu.org; Wed, 23 Jun 2010 08:25:03 -0400 Received: by fg-out-1718.google.com with SMTP id d23so1339777fga.12 for ; Wed, 23 Jun 2010 05:25:02 -0700 (PDT) In-Reply-To: <87aaqm8y5n.fsf@gmx.de> (Sebastian Rose's message of "Wed, 23 Jun 2010 01:07:00 +0200") 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: Sebastian Rose Cc: Org Mode , Carsten Dominik Hi, Sebastian Rose writes: > * Reuse input > > I would like to prompt for a value and use the input in several > places. E.g. part of the last entry in my training diary looks like > this: > > > => --->8----------------------------->8----------------------------->8--- > ***** DONE [2010-06-21 Mo] (run) 22761 5:52 > :PROPERTIES: > :date: [2010-06-21 Mo] > :meters: 22761 > :time: 02:13:32 > :pace: 5:52 > :start: 16:00 > :type: lgDL > :kcal: 1525 > :rpuls: 42 > :END: [...] > As you can see, I use the "distance" and the "pace" in two > places. One in the title for better overview, one as property for > column view. But I'd like to enter it only once. I am not exactly sure, but afaik yasnippet has this feature. http://yasnippet.googlecode.com/svn/trunk/doc/snippet-development.html ,---- | Mirrors | | We refer the tab stops with placeholders as a field. A field can have | mirrors. Its mirrors will get updated when you change the text of a | field. Here's an example: | | \begin{${1:enumerate}} | $0 | \end{$1} `---- So I guess a predefined yasnippet template would be able to get the behaviour you want in a org-remember^Worg-capture buffer? memnon