emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: ndame <emacsuser@freemail.hu>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Automatic formatting of the table as you type
Date: Fri, 27 Mar 2020 16:27:08 +0000 (GMT)	[thread overview]
Message-ID: <AyZWug.lRO1U9WezstN.8ZapDdxm7wSLjcW699Na@freemail.hu> (raw)

[-- Attachment #1: Type: text/plain, Size: 620 bytes --]


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.

[-- Attachment #2: Type: text/html, Size: 704 bytes --]

             reply	other threads:[~2020-03-27 16:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-27 16:27 ndame [this message]
2020-03-27 18:55 ` Automatic formatting of the table as you type Nicolas Goaziou
2020-03-27 20:49   ` ndame
2020-03-29  6:18     ` Adam Porter
2020-03-30  8:26       ` Eric S Fraga
  -- strict thread matches above, loose matches on Subject: below --
2020-03-29  7:09 ndame

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=AyZWug.lRO1U9WezstN.8ZapDdxm7wSLjcW699Na@freemail.hu \
    --to=emacsuser@freemail.hu \
    --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).