From: brian powell <briangpowellms@gmail.com>
To: "Martin G. Skjæveland" <martige@ifi.uio.no>
Cc: emacs-orgmode@gnu.org, Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: table, moving cells
Date: Thu, 30 Sep 2010 09:31:16 -0400 [thread overview]
Message-ID: <AANLkTi=NN3ZMXfigyP3K34OGLRuCcNEVckbfcZSfgGoo@mail.gmail.com> (raw)
In-Reply-To: <4CA44188.2050909@ifi.uio.no>
[-- Attachment #1.1: Type: text/plain, Size: 2568 bytes --]
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 or
rectangular region of cells you intend to move and do "Cxk" ==
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æveland"
<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æveland 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 plan
> 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
>
[-- Attachment #1.2: Type: text/html, Size: 3709 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
prev parent reply other threads:[~2010-09-30 13:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-25 16:02 table, moving cells "Martin G. Skjæveland"
2010-09-25 21:19 ` Charles C. Berry
2010-09-25 22:24 ` Nick Dokos
2010-09-27 7:50 ` "Martin G. Skjæveland"
2010-09-26 5:46 ` Noorul Islam
2010-09-29 15:58 ` Carsten Dominik
2010-09-30 7:51 ` "Martin G. Skjæveland"
2010-09-30 8:22 ` Indraneel Majumdar
2010-09-30 13:31 ` brian powell [this message]
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='AANLkTi=NN3ZMXfigyP3K34OGLRuCcNEVckbfcZSfgGoo@mail.gmail.com' \
--to=briangpowellms@gmail.com \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=martige@ifi.uio.no \
/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).