From: Michael Brand <michael.ch.brand@gmail.com>
To: "Gustav Wikström" <gustav.erik@gmail.com>,
"Daniel Martins" <danielemc@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: TABLES: Remove/add cell
Date: Wed, 23 Nov 2011 20:13:50 +0100 [thread overview]
Message-ID: <CALn3zojoBZYxvjAOTOGei2btY65BGFi20G06+jW3p9eOcekNPQ@mail.gmail.com> (raw)
In-Reply-To: <CALn3zoi8u93GH1iRrgvfDKJwNARi-Z5+n8P8EHTbhgWhcyiHOA@mail.gmail.com>
Hi Gustav and Daniel
2011/9/30 Gustav Wikström <gustav.erik@gmail.com>:
> How do I add or remove a single cell in a table?
> Example:
> I have the following table:
> | 1 | 1 |
> | 2 | 3 |
> | 3 | 4 |
> | 4 | |
> Now I want to add an empty cell in @2$2 (below the heading) and thus move
> the following cells in column 2 down one step.
> After:
> | 1 | 1 |
> | 2 | |
> | 3 | 3 |
> | 4 | 4 |
2011/9/30 Michael Brand <michael.ch.brand@gmail.com>:
> [...] transpose [...]
> and split it into two (or three) tables:
>
> | a | b | c | d |
>
> | 1 | 3 | 4 | |
>
> (| e | f | g | h |)
>
> Then you can use the very convenient editing functions of Org table on
> the second part of the table,
to move the empty field in front of "3"
| a | b | c | d |
| 1 | | 3 | 4 |
| e | f | g | h |
> join the parts together
| a | b | c | d |
| 1 | | 3 | 4 |
| e | f | g | h |
> and transpose again.
By coincidence just today I had the same need to move or rotate
columns left/right, without affecting the other rows above and below.
Because I need this repeatedly I wrote two in-row functions derived
from org-table-move-column, without the need anymore of splitting and
joining the table like above.
It supports only the direction left/right. The direction up/down
Gustav asked for would be harder to implement but as a workaround you
can still transpose
http://orgmode.org/worg/org-hacks.html#transpose-table
and use the in-row left/right.
from another thread:
On Mon, Nov 21, 2011 at 14:31, Daniel Martins <danielemc@gmail.com> wrote:
> The feature of remove/add cell is quite important. Should be a feature
> request.
If I understand right and only for left/right, the in-row functions
cover that too:
- remove: first blank the field with "C-c Space"
(org-table-blank-field) and then rotate in-row left
- add: rotate in-row right and replace the field content, before this
step append new columns if required
For more see
"Change the column sequence in one row only" on Worg hacks:
http://orgmode.org/worg/org-hacks.html#column-sequence-in-row
Michael
next prev parent reply other threads:[~2011-11-23 19:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-30 17:38 TABLES: Remove/add cell Gustav Wikström
2011-09-30 18:22 ` Michael Brand
2011-09-30 18:50 ` brian powell
2011-09-30 19:27 ` Gustav Wikström
2011-09-30 19:06 ` Michael Brand
2011-11-23 19:13 ` Michael Brand [this message]
2011-11-24 12:57 ` Daniel Martins
2011-12-11 16:41 ` Bastien
2011-12-11 17:21 ` Achim Gratz
2011-12-11 17:39 ` Bastien
2011-12-11 16:42 ` Bastien
2011-12-18 16:18 ` Michael Brand
2011-10-01 9:40 ` suvayu ali
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALn3zojoBZYxvjAOTOGei2btY65BGFi20G06+jW3p9eOcekNPQ@mail.gmail.com \
--to=michael.ch.brand@gmail.com \
--cc=danielemc@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=gustav.erik@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.