emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Subhan Michael Tindall <SubhanT@familycareinc.org>
Cc: "'emacs-orgmode@gnu.org'" <emacs-orgmode@gnu.org>
Subject: Re: [Feature Request] [ENTER] or [C-Alt ENTER] while on headline skip over drawers automatically
Date: Fri, 10 Apr 2015 18:19:08 +0200	[thread overview]
Message-ID: <87k2xkyn0j.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <9187ca927d174c2197aa10d5b09146b6@fcmailsvr2.familycareinc.org> (Subhan Michael Tindall's message of "Thu, 9 Apr 2015 16:16:21 +0000")

Hello,

Subhan Michael Tindall <SubhanT@familycareinc.org> writes:

> I use drawers a lot, some of which are set up by hooks when I'm entering headlines (most notably TODO keywords)
> Given the new syntax that requires no text between drawers & headlines
> (if I'm recalling that correctly),

For correctness, it only affects properties drawers.

> I think it would be very usefull to
> have either [ENTER] (bound to org-return)(C-Alt ENTER is an alternate
> keybinding possibility) move point to start of line FOLLOWING any
> drawers, DEADLINE, or SCHEDULE lines, like this:

There is already a function for that : `org-end-of-meta-data'. The
problem is the binding.

I don't think it should be the default for RET, but we could introduce
a variable, e.g., `org-special-RET', much like, e.g.,
`org-special-ctrl-a/e'.

However, there's already `org-return-follows-link'. It might be
confusing to keep both, so we could try to merge these features.

Another option is to define a new speed command, but there are not much
bindings left (at least "x", "y", "z" and special characters, e.g. ".").

Eventually, we could introduce a `org-return-hook' where an user could
add, e.g.,

  (lambda () (when (org-at-heading-p) (org-end-of-meta-data) (insert
  "\n")))

Opinions?

> Complication:
> ,** TODO this is a new headline[ENTER]
> ,:PROPERTIES:
> ,:MyProps: value
> ,:END:
> ,Is this text allowed here under new drawers syntax?

Yes.


Regards,

-- 
Nicolas Goaziou

  parent reply	other threads:[~2015-04-10 16:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 16:16 [Feature Request] [ENTER] or [C-Alt ENTER] while on headline skip over drawers automatically Subhan Michael Tindall
2015-04-09 16:21 ` Marcin Borkowski
2015-04-10 16:19 ` Nicolas Goaziou [this message]
2015-04-10 22:06   ` Rasmus
2015-04-12 20:32     ` Nicolas Goaziou
2015-04-12 20:51       ` Rasmus
2015-04-12 22:15         ` Nicolas Goaziou

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=87k2xkyn0j.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=SubhanT@familycareinc.org \
    --cc=emacs-orgmode@gnu.org \
    /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).