emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* TABLES: split cells on columns
@ 2011-11-21 13:31 Daniel Martins
  2011-11-21 14:05 ` Michael Brand
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Martins @ 2011-11-21 13:31 UTC (permalink / raw)
  To: suvayu ali; +Cc: Gustav Wikström, Michael Brand, emacs-orgmode

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

The feature of remove/add cell is quite important. Should be a feature
request.

Another important feature request is to split cells.

Example (copying and paste the example above)


Example:
I have the following table:
|        1 |        1 |
|        2 | two words|
|        3 |        4 |
|        4 |          |

Now I want to split cell  @2$2 and thus move the second part to the
following cell below  in column 2 down one step.

After:
|        1 |        1 |
|        2 |       two|
|          |     words|
|        3 |        4 |
|        4 |          |



I do it several times when I put much comments on an entry and the column
becomes much wider.

It is several commands (sometimes with rectangles, sometimes not depending
on the remaining of the table) .

Is there an easy way to do this?

Daniel


Is there a s

2011/10/1 suvayu ali <fatkasuvayu+linux@gmail.com>

> 2011/9/30 Michael Brand <michael.ch.brand@gmail.com>:
> > Ehm - it is doable, but not by editing commands from Org table. Only
> > with several rectangular edits or an Org table formula with a few
> > tricks and a temporary column to be removed afterward.
>
> There are some org-table specific rectangle edit commands that should
> make it easier. Cut the cells with org-table-cut-region, and paste by
> org-table-paste-rectangle.
>
> Hope this helps.
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>
>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TABLES: split cells on columns
  2011-11-21 13:31 TABLES: split cells on columns Daniel Martins
@ 2011-11-21 14:05 ` Michael Brand
  2011-11-22 14:26   ` Daniel Martins
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Brand @ 2011-11-21 14:05 UTC (permalink / raw)
  To: Daniel Martins; +Cc: Gustav Wikström, emacs-orgmode

Hi Daniel

Yes, there is:
1) M-<down> to add the new line
2) mark the region from "t" down to any char from the field below
3) M-Ret

The opposite direction is:
- C-u M-Ret to join the content of a field to the one above

See also C-h f org-table-wrap-region for more tricks.

Michael

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.
> Another important feature request is to split cells.
> Example (copying and paste the example above)
>
> Example:
> I have the following table:
> |        1 |        1 |
> |        2 | two words|
> |        3 |        4 |
> |        4 |          |
> Now I want to split cell  @2$2 and thus move the second part to the
> following cell below  in column 2 down one step.
> After:
> |        1 |        1 |
> |        2 |       two|
> |          |     words|
> |        3 |        4 |
> |        4 |          |
>
>
> I do it several times when I put much comments on an entry and the column
> becomes much wider.
> It is several commands (sometimes with rectangles, sometimes not depending
> on the remaining of the table) .
> Is there an easy way to do this?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TABLES: split cells on columns
  2011-11-21 14:05 ` Michael Brand
@ 2011-11-22 14:26   ` Daniel Martins
  2011-11-22 14:36     ` Michael Brand
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Martins @ 2011-11-22 14:26 UTC (permalink / raw)
  To: Michael Brand; +Cc: Gustav Wikström, emacs-orgmode

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

Thank you very much!!!

Just one point

In my case at least M-<down> does not insert a new line!


From the comment of the key sequence:



----------------------------------------------


  org-metadown is an interactive compiled Lisp function in `org.el'.

(org-metadown &optional ARG)

Move subtree down or move table row down.
Calls `org-move-subtree-down' or `org-table-move-row' or
`org-move-item-down', depending on context.  See the individual
commands for more information.

[back] [forward]


2011/11/21 Michael Brand <michael.ch.brand@gmail.com>

> Hi Daniel
>
> Yes, there is:
> 1) M-<down> to add the new line
> 2) mark the region from "t" down to any char from the field below
> 3) M-Ret
>
> The opposite direction is:
> - C-u M-Ret to join the content of a field to the one above
>
> See also C-h f org-table-wrap-region for more tricks.
>
> Michael
>
> 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.
> > Another important feature request is to split cells.
> > Example (copying and paste the example above)
> >
> > Example:
> > I have the following table:
> > |        1 |        1 |
> > |        2 | two words|
> > |        3 |        4 |
> > |        4 |          |
> > Now I want to split cell  @2$2 and thus move the second part to the
> > following cell below  in column 2 down one step.
> > After:
> > |        1 |        1 |
> > |        2 |       two|
> > |          |     words|
> > |        3 |        4 |
> > |        4 |          |
> >
> >
> > I do it several times when I put much comments on an entry and the column
> > becomes much wider.
> > It is several commands (sometimes with rectangles, sometimes not
> depending
> > on the remaining of the table) .
> > Is there an easy way to do this?
>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: TABLES: split cells on columns
  2011-11-22 14:26   ` Daniel Martins
@ 2011-11-22 14:36     ` Michael Brand
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Brand @ 2011-11-22 14:36 UTC (permalink / raw)
  To: Daniel Martins; +Cc: Gustav Wikström, emacs-orgmode

Hi Daniel

On Tue, Nov 22, 2011 at 15:26, Daniel Martins <danielemc@gmail.com> wrote:
> Thank you very much!!!
> Just one point
> In my case at least M-<down> does not insert a new line!
                      ^^^^^^^^^

Yes, my fault. Corrigendum:

1) M-S-<down> to add the new row
2) mark the region from "t" down to any char from the field below
3) M-Ret

Michael

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-22 14:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-21 13:31 TABLES: split cells on columns Daniel Martins
2011-11-21 14:05 ` Michael Brand
2011-11-22 14:26   ` Daniel Martins
2011-11-22 14:36     ` Michael Brand

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).