From mboxrd@z Thu Jan 1 00:00:00 1970 From: ndame Subject: Automatic formatting of the table as you type Date: Fri, 27 Mar 2020 16:27:08 +0000 (GMT) Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_9556_1232934557.1585326428375" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42854) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHrrT-0004jI-MO for emacs-orgmode@gnu.org; Fri, 27 Mar 2020 12:29:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHrrR-0002FN-D3 for emacs-orgmode@gnu.org; Fri, 27 Mar 2020 12:29:35 -0400 Received: from fmfe23.onbox.hu ([46.107.16.228]:50929 helo=web-out.onbox.hu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jHrrQ-0001zF-1T for emacs-orgmode@gnu.org; Fri, 27 Mar 2020 12:29:33 -0400 Received: from localhost (localhost [62.165.214.104]) by web-out.onbox.hu (Postfix) with SMTP id 48pnPM3cY2zTgV for ; Fri, 27 Mar 2020 17:29:27 +0100 (CET) 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: "emacs-orgmode@gnu.org" ------=_Part_9556_1232934557.1585326428375 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The other day a code was posted on Reddit which automatically formats the table as you type: https://i.imgur.com/lorIDhY.gif The code looks pretty simple, the actual formatting code is only a few line= s and=C2=A0it might even be possible to rewrite it to simplify it even more: https://reddit.com/r/emacs/comments/fosdi2/orgtableautoalignmode_minor_mode= _for_auto/ Org should provide this feature out of the box as an optional minor mode like org-indent-mode. It provides a much nicer user experience than the current behavior where the table falls apart when you type in it until you press TAB or such. ------=_Part_9556_1232934557.1585326428375 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
The other day a code was posted on Reddit which automatically formats
the table as you type:

https://i.imgur.com/lorIDhY.gif


The code looks pretty simple, the actual formatting code is only a few lines
and it might even be possible to rewrite it to simplify it even more:

https://reddit.com/r/emacs/comments/fosdi2/orgtableautoalignmode_minor_mode_for_auto/


Org should provide this feature out of the box as an optional minor
mode like org-indent-mode. It provides a much nicer user experience
than the current behavior where the table falls apart when you type in
it until you press TAB or such. ------=_Part_9556_1232934557.1585326428375--