From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: insert item under previous headline (feature request?) Date: Wed, 05 Sep 2007 07:47:45 +0200 Message-ID: <878x7lfyta.fsf@bzg.ath.cx> References: <87642rhuxp.fsf@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISnlZ-0000a9-Fn for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 01:49:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISnlV-0000W3-Te for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 01:49:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISnlV-0000Vb-IK for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 01:49:25 -0400 Received: from hu-out-0506.google.com ([72.14.214.228]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISnlU-0005Nm-Sb for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 01:49:25 -0400 Received: by hu-out-0506.google.com with SMTP id 23so1863132huc for ; Tue, 04 Sep 2007 22:49:23 -0700 (PDT) In-Reply-To: <87642rhuxp.fsf@mail.ru> (Maxim Loginov's message of "Tue, 04 Sep 2007 12:16:18 +0700") 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: Maxim Loginov Cc: emacs-orgmode@gnu.org Maxim Loginov writes: > usually I look for the paper in internet and use remember to insert > such TODOs, and temporarily modify remember template in order not to > seek "* TODO read papers" headline every time. It would be good if > org-mode can remember the last used headline and insert newly created > TODO under it for example using prefix argument 0 (C-u 0 M-x remember) > > I'm wondering if such feature exist or can be implemented? Sorry I read your question too hastily. Why not using *two* templates, one for headlines you want to put under "* TODO read papers" and one for headlines you'd like to put elsewhere? BTW, interactively selecting the place for the newly inserted remember note does not work properly for me: ,---- | Cursor Key Note gets inserted | position | buffer-start as level 2 heading at end of file | on headline as sublevel of the heading at cursor | /as same level, before/after current heading | not on at cursor position, level taken from context. | headline `---- - / inserts notes as sublevel, not as same level. - RET at the beginning of buffer inserts the remember note at level 1 before the first note, not as level 2 at end of file. Tested with 5.07a and two dummy templates like: (setq org-remember-templates '((?n "* %?\n %i\n %a" "~/org/notes.org") (?N "* %?\n %i\n %a" "~/org/notes.org" "Notes"))) ... and with a note.org like: ,---- | * Notes | | ** Nothing | ** Nothing more `---- -- Bastien