emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Maxim Loginov <zeliboba@mail.ru>
Cc: emacs-orgmode@gnu.org
Subject: Re: insert item under previous headline (feature request?)
Date: Wed, 05 Sep 2007 07:47:45 +0200	[thread overview]
Message-ID: <878x7lfyta.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87642rhuxp.fsf@mail.ru> (Maxim Loginov's message of "Tue, 04 Sep 2007 12:16:18 +0700")

Maxim Loginov <zeliboba@mail.ru> 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   <RET>       as level 2 heading at end of file
| on headline    <RET>       as sublevel of the heading at cursor
|                <left>/<right>as same level, before/after current heading
| not on         <RET>       at cursor position, level taken from context.
| headline                   
`----

- <left>/<right> 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

  parent reply	other threads:[~2007-09-05  5:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-04  5:16 insert item under previous headline (feature request?) Maxim Loginov
2007-09-04 18:19 ` Bastien
2007-09-05  5:44   ` Maxim Loginov
2007-09-05  1:00 ` Xavier Maillard
2007-09-05  5:43   ` Maxim Loginov
2007-09-05  5:47 ` Bastien [this message]
2007-09-05 21:44   ` Carsten Dominik
2007-09-10 12:34 ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878x7lfyta.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=zeliboba@mail.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).