emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Table: Insert Cell


From: Jorge A. Alfaro-Murillo
Subject: Re: [O] Table: Insert Cell
Date: Thu, 29 Jan 2015 14:43:16 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Hi Tory,

Tory S. Anderson writes:

Does anyone know a solution for the surely common case of needing to insert a cell (not a column or row) into an orgmode table? Spreadsheet programs allow the option of pushing the column down or pushing the cells right in this case. How can this be achieved in orgmode?

I do not think that there is a command for that. For pushing the row, it is trivial just write the new cell

| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |

| 1 | 2 | 3 |
| 4 | here|5 | 6 |
| 7 | 8 | 9 |

becomes

| 1 |    2 | 3 |   |
| 4 | here | 5 | 6 |
| 7 | 8 | 9 | |
after C-c C-c

For pushing the column, you can use kill-rectangle after inserting another row

| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |

TAB on the 9 cell

| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |
| | | |
Move below and to the right of the 8

| 1 | 2              | 3 |
| 4 | 5              | 6 |
| 7 | 8              | 9 |
|   |   <cursor here>|   |

C-<space> there, select until the left of the 5

| 1 |              2 | 3 |
| 4 | <cursor here>5 | 6 |
| 7 |              8 | 9 |
|   |                |   |

And then C-x r k, which cuts the rectangle, should get you to

| 1 | 2 | 3 |
| 4 | | 6 |
| 7 | | 9 |
|   |   |   |

move one cell down and use C-x r y

| 1 | 2 | 3 |
| 4 | | 6 |
| 7 | 5 | 9 |
|   | 8   |   |

Finally, C-c C-c, gives you what you want

| 1 | 2 | 3 |
| 4 |   | 6 |
| 7 | 5 | 9 |
|   | 8 |   |

Best,

--
Jorge.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]