From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou 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 Message-ID: <87k2xkyn0j.fsf@nicolasgoaziou.fr> References: <9187ca927d174c2197aa10d5b09146b6@fcmailsvr2.familycareinc.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ygbct-00033t-Nz for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 12:17:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ygbcs-0004lN-OH for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 12:17:51 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:36243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ygbcs-0004kx-Gm for emacs-orgmode@gnu.org; Fri, 10 Apr 2015 12:17:50 -0400 In-Reply-To: <9187ca927d174c2197aa10d5b09146b6@fcmailsvr2.familycareinc.org> (Subhan Michael Tindall's message of "Thu, 9 Apr 2015 16:16:21 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Subhan Michael Tindall Cc: "'emacs-orgmode@gnu.org'" Hello, Subhan Michael Tindall 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