From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Questions about org-capture templates and usage Date: Sun, 05 Dec 2010 22:59:45 -0500 Message-ID: <87pqtf8sb2.fsf@norang.ca> References: <83bp50hgy2.fsf@gmail.com> <8762v81le1.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=58790 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPSF4-0005xv-C6 for emacs-orgmode@gnu.org; Sun, 05 Dec 2010 22:59:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPSF2-0005Fs-Ma for emacs-orgmode@gnu.org; Sun, 05 Dec 2010 22:59:58 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:56954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPSF2-0005Fa-KQ for emacs-orgmode@gnu.org; Sun, 05 Dec 2010 22:59:56 -0500 In-Reply-To: <8762v81le1.fsf@fastmail.fm> (Matt Lundin's message of "Sun, 05 Dec 2010 06:58:46 -0500") 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: Matt Lundin Cc: emacs-orgmode@gnu.org Matt Lundin writes: > Alan writes: > >> 3. I have had to modify my usage to accomodate to changes in >> org-capture, relative to org-remember. Some differences devolve >> from explicit design features >> >> 1. It is no longer necessary to auto-save uncommitted items. As >> a consequence there seems (as I understand it) to no longer >> be a way to use a prefix key to allow one to visit the item >> in it's context AFTER committing it with C-c C-c. >> >> I have spend a good deal of time worrying over this, but >> haven't solved the problem. Probably 90% of the times I save >> (C-c C-c) the Captured item, I stumble over how to find it >> again to enhance or review the item. > >> *Is there a way to do this, or can we request a way to do this?* > > The function org-capture-goto-last-stored will take you the item. > > You can bind this to a key. > > Or if you would like always to jump to a capture item after filing it, > you can add a hook: > > (add-hook 'org-capture-after-finalize-hook > 'org-capture-goto-last-stored) I visit newly captured items all the time. If you capture something (I have C-M-r bound to org-capture) and store it with C-c C-c you can visit it immediately with a double prefix C-u C-u C-M-r as stated in the org-capture docstring: ,---- | C-M-r runs the command org-capture, which is an interactive autoloaded | Lisp function in `org-capture.el'. | | It is bound to C-c r, C-M-r. | | (org-capture &optional GOTO KEYS) | | Capture something. | | Uses keymap "org-capture-mode-map", which is not currently defined. | | This will let you select a template from `org-capture-templates', and then | file the newly captured information. The text is immediately inserted | at the target location, and an indirect buffer is shown where you can | edit it. Pressing M-x org-capture-finalize brings you back to the previous state | of Emacs, so that you can continue your work. | | When called interactively with a C-u prefix argument GOTO, don't capture | anything, just go to the file/headline where the selected template | stores its notes. With a double prefix argument C-u C-u, go to the last note ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | stored. ^^^^^^ | | When called with a `C-0' (zero) prefix, insert a template at point. | | Lisp programs can set KEYS to a string associated with a template in | `org-capture-templates'. In this case, interactive selection will be | bypassed. `---- HTH, Bernt