From mboxrd@z Thu Jan 1 00:00:00 1970 From: Calvin Young Subject: Re: Emulating list functionality from traditional GUI editors Date: Thu, 11 Dec 2014 20:48:53 -0800 Message-ID: References: <87vbliynlf.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113eb29e4adab30509fd9d3e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzIAH-0003Fm-5k for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 23:49:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzIAE-0003W5-Pg for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 23:49:17 -0500 Received: from mail-ie0-x231.google.com ([2607:f8b0:4001:c03::231]:33118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzIAE-0003W1-I5 for emacs-orgmode@gnu.org; Thu, 11 Dec 2014 23:49:14 -0500 Received: by mail-ie0-f177.google.com with SMTP id rd18so6248077iec.36 for ; Thu, 11 Dec 2014 20:49:13 -0800 (PST) In-Reply-To: <87vbliynlf.fsf@gmx.us> 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: Rasmus Cc: emacs-orgmode@gnu.org --001a113eb29e4adab30509fd9d3e Content-Type: text/plain; charset=ISO-8859-1 Makes sense! Just wanted to see how others felt about this :) Anyway thanks for the consideration, and for the tip about org-element-at-point -- really did make this trivial to implement. On Thu, Dec 11, 2014 at 11:48 AM, Rasmus wrote: > Hi, > > Calvin Young writes: > > > - If the cursor is at the end of a list item, then "Return" should > > insert a new list item (i.e., automatically perform org-meta-return) > > Maybe you can use org-element-at-point and advice org-return? > > > - If the cursor is at the beginning of an empty list item, then > "Return" > > should outdent the list item (or remove it if it's already at the > > outer-most indentation level) > > I don't understand this. Do you know M-{left,right}? Again, you could > advice org-return. > > In LO it removes the bullet. Here you can use C-S-Backspace. Bonus: it > works everywhere! > > > - If the cursor is at the beginning of an empty list item, then > > "Backspace" should delete the list item and move my cursor to the end > of > > the previous list item > > This is like C-S-Backspace C-p C-e. You could advice org-delete-backward. > > > - It'd be nice of these rules could be applied to checkboxes as well > > It should be trivial to support using org-element-at-point. > > > What I'm describing is really just the default behavior around bulleted / > > numbered lists in other GUI editors (e.g., Google Docs, Gmail, OSX Notes, > > etc.). > > OK... > > > Are there any options built in to org-mode that'd let me enable this? > > No. And I doubt it should be. But Emacs is /your/ extensible editor. > > --Rasmus > > -- > Need more coffee. . . > > > --001a113eb29e4adab30509fd9d3e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Makes sense! Just wanted to see how others felt about this= :)

Anyway thanks for the consideration, and for the tip about=  org-element-at-point — really did make this trivial to implemen= t.


On Thu, Dec 11, 2014 at 11:48 AM, Rasmus <rasmus@gmx.= us> wrote:
Hi,

Calvin Young <calvinwyoung@gmail.com> writes:

>    - If the cursor is at the end of a list item, then "= Return" should
>    insert a new list item (i.e., automatically perform= org-meta-return)

Maybe you can use org-element-at-point and advice org-return?

>    - If the cursor is at the beginning of an empty list item= , then "Return"
>    should outdent the list item (or remove it if it= 9;s already at the
>    outer-most indentation level)

I don't understand this.  Do you know M-{left,right}? = Again, you could
advice org-return.

In LO it removes the bullet.  Here you can use C-S-Backspace.  Bo= nus: it
works everywhere!

>    - If the cursor is at the beginning of an empty list item= , then
>    "Backspace" should delete the list item a= nd move my cursor to the end of
>    the previous list item

This is like C-S-Backspace C-p C-e.  You could advice org-delet= e-backward.

>    - It'd be nice of these rules could be applied to che= ckboxes as well

It should be trivial to support using org-element-at-point.

> What I'm describing is really just the default behavior around bul= leted /
> numbered lists in other GUI editors (e.g., Google Docs, Gmail, OSX Not= es,
> etc.).

OK...

> Are there any options built in to org-mode that'd let me enable th= is?

No.  And I doubt it should be.  But Emacs is /your/ extens= ible editor.

—Rasmus

--
Need more coffee. . .



--001a113eb29e4adab30509fd9d3e--