From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: M-RET and C-RET turn current line of text into a heading? Date: Wed, 15 May 2013 17:30:21 +0800 Message-ID: <87wqr01tg2.fsf@ericabrahamsen.net> References: <87r4h83kld.fsf@ericabrahamsen.net> <8738to3b5m.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcY2i-0002nO-PQ for emacs-orgmode@gnu.org; Wed, 15 May 2013 05:30:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcY2f-00015u-GE for emacs-orgmode@gnu.org; Wed, 15 May 2013 05:30:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:57269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcY2f-00015a-96 for emacs-orgmode@gnu.org; Wed, 15 May 2013 05:30:37 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UcY2e-0008IQ-6Q for emacs-orgmode@gnu.org; Wed, 15 May 2013 11:30:36 +0200 Received: from 114.250.129.45 ([114.250.129.45]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 May 2013 11:30:36 +0200 Received: from eric by 114.250.129.45 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 May 2013 11:30:36 +0200 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: emacs-orgmode@gnu.org Christian Moe writes: > Eric Abrahamsen writes: > >> I don't see why `org-ctrl-c-star' --> `org-toggle-heading' isn't enough >> for creating headlines out of existing text. > > Fair point, but I find it useful to have a simpler and speedier > combination, redundant or not. For instance, I often use Org to make > structured documents out of plain text, text copy-pasted from PDFs etc., > which involves scrolling through the document and repeatedly turning the > lines at point into headings. It quickly becomes a nuisance to do this > with a sequence of two double keypresses (`C-c *', that is, `C-c S-8' -- > not to mention that I routinely switch between keyboards for three > languages with somewhat different ideas where `*' should be). > >> At the very least, we shouldn't now have three keystrokes (C-c *, >> M-RET, C-RET) that do the same thing! Also, >> `org-M-RET-may-split-line', which was once a very interesting >> variable, now does nothing since M-RET simply doesn't split the line. > > True. I think this needs to be revisited (before too many people get > used to the recent arrangement). Ugh, I've had plenty of experience trying to impose structure on unstructured text. PDF copy-n-paste is a nightmare, particular where columns were involved. However! Having a useful set of commands is one thing, and having useful keybindings for those commands is another. M-RET/C-RET are still pretty crucial for taking notes out of thin air. They each have their own behavior when point is at beginning, middle, and end of line, as well, and I'd hope that all would be left in place. `org-ctrl-c-star' either calls `org-table-recalculate' or `org-toggle-heading', which are strange bedfellows. The key chord seems much more tied to table recalculation (there are multiple various behaviors triggered by prefix args) than to heading toggling. We might consider splitting `org-toggle-heading' off onto its own key. Or perhaps it would be enough tweak keybindings? Maybe leave the current bindings and behavior of `org-ctrl-c-star', but add the "fat finger" bindings of 'C-c 8' and 'C-c C-8' to `org-ctrl-c-star' (or even bind them directly to `org-toggle-heading'). It would be inelegant, but that way you could park a pinkie on the control key, and travel through a buffer with 'C-s' or '(C-u, C-) C-n', hitting 'C-c C-8' as needed. Just one possibility, E