emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Let org table support move region selected fields
@ 2018-04-28 13:07 stardiviner
  2018-04-28 13:12 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: stardiviner @ 2018-04-28 13:07 UTC (permalink / raw)
  To: org-mode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Hi, recently I realized that table rows/columns movement does not
support region selection. Like following example.

| a | b | c |
| 1 | 2 | 3 |
| 4 | 5 | 6 |

When I use region select "5 | 6", and press "org-metaup [M-Up/Down]". It
does not work as expected move "5 | 6" up. Seems this command does not
region selection. Include "[M-Right/Left]" Is is possible to support
region selection so that partial movement will be great!

- --
[ stardiviner ] don't need to convince with trends.
       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAlrkchMACgkQG13xyVro
msP73Af/Sjpb4HXPmMqEpB4hprF13JPfXoQBQwI8NNLZ1PKQiG5xeJQC+AX0edsv
yE4ZGRr3LxWxpiTFdSANRhyQQWzj4Y/gKULWyN+AYtCX6wQy++bGt8WyBA9V6zB/
54z+674OIWKEUd5W4m1EUyTysgmTrbE5RNPr1ohGl/SjRulwQqw/TzeWhlDnmgJV
xeVSHUVq+Px+7yYH8PI+27NLDTSPiArlxgvQvJ4IAJBfaj8CRLkOAHAApBYbGOPx
2AJgyMLUdFAu4nngxuVzuGqLPisadLvvQQTjbI8+rdRbt783iWduDczOTBpNx51g
EyzVPwewzozby8pAUV/MdobNAjOr9w==
=QR/1
-----END PGP SIGNATURE-----

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

* Re: Let org table support move region selected fields
  2018-04-28 13:07 Let org table support move region selected fields stardiviner
@ 2018-04-28 13:12 ` Bastien
  2018-04-29  4:59   ` stardiviner
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2018-04-28 13:12 UTC (permalink / raw)
  To: stardiviner; +Cc: org-mode

Hi,

stardiviner <numbchild@gmail.com> writes:

> Hi, recently I realized that table rows/columns movement does not
> support region selection. Like following example.
>
> | a | b | c |
> | 1 | 2 | 3 |
> | 4 | 5 | 6 |
>
> When I use region select "5 | 6", and press "org-metaup [M-Up/Down]". It
> does not work as expected move "5 | 6" up. Seems this command does not
> region selection. Include "[M-Right/Left]" Is is possible to support
> region selection so that partial movement will be great!

You can use `org-table-copy-region' and `org-table-paste-rectangle'
to copy and paste cells from a table.

Moving to cells at the same time, either up/down/left/right is not
supported, you can only move one cell or row at a time, not a region.

To select multiple cells vertically, you might also want to check
C-x SPC.

HTH,

-- 
 Bastien

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

* Re: Let org table support move region selected fields
  2018-04-28 13:12 ` Bastien
@ 2018-04-29  4:59   ` stardiviner
  2018-04-29 10:35     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: stardiviner @ 2018-04-29  4:59 UTC (permalink / raw)
  To: Bastien; +Cc: org-mode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


Bastien <bzg@gnu.org> writes:

> You can use `org-table-copy-region' and `org-table-paste-rectangle'
> to copy and paste cells from a table.
>
> Moving to cells at the same time, either up/down/left/right is not
> supported, you can only move one cell or row at a time, not a region.
>
> To select multiple cells vertically, you might also want to check
> C-x SPC.
>
> HTH,

Thanks, this solved my problem. BTW, my curious why those commands are
not actived with keybindings in org-mode?

- --
[ stardiviner ] don't need to convince with trends.
       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAlrlUR8ACgkQG13xyVro
msOcqggAh27Lmc/sr889XVyPpwHlAZ5YZ4qzwsm47UbGDSOIRTkeWj3+ax6RWHN9
308g6v8VplAI2BJUwJzwglcslYNnV4JcZ7n/CMtUv/JpbprRNrCxSb+cXz3iPyiX
xQOgVu6wAbDiTWhG1AGZO+ZX4+3TiLwY7qF0QT43ncguBGlB5R6uEJbfUKh4vqCk
aGCyPKMnDs7HDQW0lrN8Drp/7t+tlRYHXD17menEdnz2LoKNGGmBiA1GTrD8ImAg
eLkVW68DqapJtKI7swJqtQtJ5R3ffH4wXxnK40ZejGalOrQ+Edffrszj8/+Ccicw
7zDlkHFbkNdmDCwGu1vkiitkSM/91Q==
=Ece0
-----END PGP SIGNATURE-----

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

* Re: Let org table support move region selected fields
  2018-04-29  4:59   ` stardiviner
@ 2018-04-29 10:35     ` Bastien
  2018-04-29 14:32       ` [SOLVED] " stardiviner
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2018-04-29 10:35 UTC (permalink / raw)
  To: stardiviner; +Cc: org-mode

Hi,

stardiviner <numbchild@gmail.com> writes:

> Thanks, this solved my problem. BTW, my curious why those commands are
> not actived with keybindings in org-mode?

They are, but within "special" commands -- see this in org.el:

(org-defkey org-mode-map (kbd "C-c C-x C-w") #'org-cut-special)
(org-defkey org-mode-map (kbd "C-c C-x M-w") #'org-copy-special)
(org-defkey org-mode-map (kbd "C-c C-x C-y") #'org-paste-special)

-- 
 Bastien

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

* [SOLVED] Re: Let org table support move region selected fields
  2018-04-29 10:35     ` Bastien
@ 2018-04-29 14:32       ` stardiviner
  0 siblings, 0 replies; 5+ messages in thread
From: stardiviner @ 2018-04-29 14:32 UTC (permalink / raw)
  To: Bastien; +Cc: org-mode

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256


> They are, but within "special" commands -- see this in org.el:
>
> (org-defkey org-mode-map (kbd "C-c C-x C-w") #'org-cut-special)
> (org-defkey org-mode-map (kbd "C-c C-x M-w") #'org-copy-special)
> (org-defkey org-mode-map (kbd "C-c C-x C-y") #'org-paste-special)

I see, thanks Bastien

- -- 
[ stardiviner ] don't need to convince with trends.
       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAlrl12UACgkQG13xyVro
msMj5gf+OIkQRlaVeyJNUkgn5mCTIodz0JrVEhHAYL05f0cvbxRzhkM+0HNZPZnY
ZxbhOkJ5KpCUXm+4eb+mnbYs5p1CW3Rq0jhXfXO8p7/NZQgKKmXDUDefpvdGYizO
yZp55acP8hP7MggJ/Oy3O3zsWQ7BviG7JHxOx+TQlkMGfS/6CtkcH7wNuhJV0VM5
1vRFXU7L3puPznTB+w1pxGb6E/GWhMuhAfnaCkaxLHAW9Adoh1ov4NDbpghqpL2S
i2AzrlYM4HWtaPbUs2k4ppCerruSbEgir6f8NjQFeRleGU3trqbcl9kYu1cA/8yw
gECCLcaAyVENyFPcreg5JKEGMXVMMQ==
=Yttn
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2018-04-29 14:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-28 13:07 Let org table support move region selected fields stardiviner
2018-04-28 13:12 ` Bastien
2018-04-29  4:59   ` stardiviner
2018-04-29 10:35     ` Bastien
2018-04-29 14:32       ` [SOLVED] " stardiviner

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