Ask Your Question
0

How can I switch the text content of two cells efficiently? [closed]

asked 2014-09-20 22:35:16 +0100

Joschua gravatar image

updated 2014-09-21 09:48:12 +0100

For example in many text editors you can use Alt + Up to move a line of text up and Alt + Down to move it down. (However this seems to already been taken by LibreOffice Calc.)

I would want this to only switch the text, not formatting or else. Pressing the key press / combination or executing the script for "moving the selected cell one down" should turn this:

(the selected cell is marked by *)

| name | rating
|------|--------
| max  | 3
| sam* | 5
| tom  | 2

to this:

| name | rating
|------|--------
| max  | 3
| tom  | 2
| sam* | 5

(but maybe I also should report that.. where would I make a feature request?)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-03 23:02:01.075302

1 Answer

Sort by » oldest newest most voted
1

answered 2014-09-21 12:39:24 +0100

oweng gravatar image

updated 2014-09-23 01:46:59 +0100

As the answer here suggests:

  1. Highlight the cells.
  2. Click-n-drag to new position.
  3. Press ALT on release of mouse click to modify behaviour (from move to switch).
edit flag offensive delete link more

Comments

Thanks, but that's a problem, because ALT is used in Linux to move application windows. Is there a way to change that combination?

Joschua gravatar imageJoschua ( 2014-09-21 19:54:52 +0100 )edit
1

Please try this: Press ALT key only when releasing the mouse button, not when moving around.

Regina gravatar imageRegina ( 2014-09-21 23:56:10 +0100 )edit

@Joschua, reserved keyboard shortcuts under GNU/Linux vary according to desktop environment / window manager. Debian 7 + LXDE does not reserve the indicated combination. You did not mention any details in this respect. I have amended my answer for greater clarity. My thanks to you and @Regina for clarifying this.

oweng gravatar imageoweng ( 2014-09-23 01:44:15 +0100 )edit

Question Tools

1 follower

Stats

Asked: 2014-09-20 22:35:16 +0100

Seen: 1,787 times

Last updated: Sep 23 '14