From mboxrd@z Thu Jan 1 00:00:00 1970 From: brian powell Subject: Re: table, moving cells Date: Thu, 30 Sep 2010 09:31:16 -0400 Message-ID: References: <4C9E1D1A.2090700@ifi.uio.no> <4CA44188.2050909@ifi.uio.no> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1182114852==" Return-path: Received: from [140.186.70.92] (port=39710 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1JEH-0001Ln-6C for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 09:31:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P1JEE-0007xX-OM for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 09:31:20 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:59475) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P1JEE-0007xL-DI for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 09:31:18 -0400 Received: by fxm10 with SMTP id 10so1648045fxm.0 for ; Thu, 30 Sep 2010 06:31:17 -0700 (PDT) In-Reply-To: <4CA44188.2050909@ifi.uio.no> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?Martin_G=2E_Skj=E6veland?= Cc: emacs-orgmode@gnu.org, Carsten Dominik --===============1182114852== Content-Type: multipart/alternative; boundary=001485f0408ab0629b04917a175e --001485f0408ab0629b04917a175e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Theres a very simple way to do this; its been available in EMACS as long as I can remember--which is back to the late 80's--and OrgMode makes it even easier since it evens-up/covers-down/aligns columns in real-time: All you have to do is: Go to the bottom right corner of the cell or column you would like to move and set a mark "CS@", then go the the top right corner of the square cell o= r rectangular region of cells you intend to move and do "Cxk" =3D=3D cut-rectangle--then go to where you want to move the cell or rectangle and do "Cxry" to do the yank-rectangle where you'd like to put it. I just tested it--works fine! ;-) On Thu, Sep 30, 2010 at 3:51 AM, "Martin G. Skj=E6veland" wrote: > On 29/09/10 17:58, Carsten Dominik wrote: > >> Hi Martin, >> >> On Sep 25, 2010, at 6:02 PM, Martin G. Skj=E6veland wrote: >> >> Hi, >>> >>> is there a quick way for moving a cell about in a table? I enjoy >>> swapping the order of rows and columns in a table using Meta + >>> [arrow], but I have not found a ways of doing the same for a single >>> cell. Is it possible? >>> >>> Example, with the cursor on '2' in the following table >>> >>> | A | B | C | >>> | 1 | 2 | 3 | >>> | x | y | z | >>> >>> and pressing [move cell left] would give me >>> >>> | A | B | C | >>> | 2 | 1 | 3 | >>> | x | y | z | >>> >>> Thanks! >>> >> > Hi Carsten > > I fail to see the use case for this. >> > > I have come across two use cases lately where I have been missing this > feature: 1) in a timetable, swapping a cell or two, e.g., the title of a > talk and the speaker, with next week's values; and 2) making a seating pl= an > for a social event. In the latter, moving people about quick and easy is > nice. > > Yes, this can >> be useful sometimes, and you can use `C-c C-x C-w' and >> `C-c C-x C-y' to cut and paste individual fields or >> even rectangular regions. >> > > Ok, thanks, I did not know about these. > > But for pushing a cell value >> to a neighboring cell, I don't see a frequent use that >> would call for a special command beyond what I listed above. >> Do you? >> > > I agree that it is not a frequent operation. > > For the seating plan, I ended up with lots of post-it notes on a wall, > which worked just fine! :) > > Thanks again! > Martin > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --001485f0408ab0629b04917a175e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Theres a very simple way to do this; its been available in EMACS as long as= I can remember--which is back to the late 80's--and OrgMode makes it e= ven easier since it =A0evens-up/covers-down/aligns columns in real-time: Al= l you have to do is:

Go to the bottom right corner of the cell or column you woul= d like to move and set a mark "CS@", then go the the top right co= rner of the square cell or rectangular region of cells you intend to move a= nd do "Cxk" =3D=3D cut-rectangle--then go to where you want to mo= ve the cell or rectangle and do "Cxry" to do the yank-rectangle w= here you'd like to put it.

I just tested it--works fine!

= ;-)

On Thu, Sep 30, 2010 at 3:51 AM, &quo= t;Martin G. Skj=E6veland" <martige@ifi.uio.no> wrote:
On 29/09/10 17:58, Carsten Dominik wrote:
Hi Martin,

On Sep 25, 2010, at 6:02 PM, Martin G. Skj=E6veland wrote:

Hi,

is there a quick way for moving a cell about in a table? I enjoy
swapping the order of rows and columns in a table using Meta +
[arrow], but I have not found a ways of doing the same for a single
cell. Is it possible?

Example, with the cursor on '2' in the following table

| A | B | C |
| 1 | 2 | 3 |
| x | y | z |

and pressing [move cell left] would give me

| A | B | C |
| 2 | 1 | 3 |
| x | y | z |

Thanks!

Hi Carsten

I fail to see the use case for this.

I have come across two use cases lately where I have been missing this feat= ure: 1) in a timetable, swapping a cell or two, e.g., the title of a talk a= nd the speaker, with next week's values; and 2) making a seating plan f= or a social event. In the latter, moving people about quick and easy is nic= e.

Yes, this can
be useful sometimes, and you can use `C-c C-x C-w' and
`C-c C-x C-y' to cut and paste individual fields or
even rectangular regions.

Ok, thanks, I did not know about these.

But for pushing a cell value
to a neighboring cell, I don't see a frequent use that
would call for a special command beyond what I listed above.
Do you?

I agree that it is not a frequent operation.

For the seating plan, I ended up with lots of post-it notes on a wall, whic= h worked just fine! :)

Thanks again!
Martin

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--001485f0408ab0629b04917a175e-- --===============1182114852== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1182114852==--