emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Paste subtree without expanding it / keep it collapsed after pasting
@ 2019-01-14 22:37 Marcelo de Moraes Serpa
  2019-01-14 23:30 ` Kyle Meyer
  0 siblings, 1 reply; 2+ messages in thread
From: Marcelo de Moraes Serpa @ 2019-01-14 22:37 UTC (permalink / raw)
  To: Org Mode

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

Hi list,

I often copy an item and its whole subtree to move them around, I know I
can move them with the move commands, but sometimes it's faster to just
copy, paste and fix the leveling later.

I can copy or cut a collapsed subtree and it will copy everything below it
until it ends (and the next item at the same level starts), which is
intuitive and works great. However, when pasting it, it automatically
expands the tree and it makes it really hard to see the context so I can
fix the leveling, for example.

Is there a way to paste the subtree [and keep it] collapsed?

Thanks in advance!

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

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

* Re: Paste subtree without expanding it / keep it collapsed after pasting
  2019-01-14 22:37 Paste subtree without expanding it / keep it collapsed after pasting Marcelo de Moraes Serpa
@ 2019-01-14 23:30 ` Kyle Meyer
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2019-01-14 23:30 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa, Org Mode

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

[...]

> I can copy or cut a collapsed subtree and it will copy everything below it
> until it ends (and the next item at the same level starts), which is
> intuitive and works great. However, when pasting it, it automatically
> expands the tree and it makes it really hard to see the context so I can
> fix the leveling, for example.
>
> Is there a way to paste the subtree [and keep it] collapsed?

I’m not able to trigger that behavior using the default configuration.
Here’s what I tried on both master and maint using the file below.

With point on the aa1 heading (collapsed), I pressed ‘C-c @’ followed by
‘C-w’.  I then moved point under the b heading and hit ‘C-y’.  aa1
stayed collapsed after it was yanked.

Does that sequence accurately reflect the scenario you’re describing?


--8<---------------cut here---------------start------------->8---
* a
** aa1

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  Donec
hendrerit tempor tellus.  Donec pretium posuere tellus.

Aliquam erat volutpat.  Nunc eleifend leo vitae magna.  In id erat non
orci commodo lobortis.  Proin neque massa, cursus ut, gravida ut,
lobortis eget, lacus.  Sed diam.

*** aaa1

Nullam eu ante vel est convallis dignissim.  Fusce suscipit, wisi nec
facilisis facilisis, est dui fermentum leo, quis tempor ligula erat
quis odio.  Nunc porta vulputate tellus.  Nunc rutrum turpis sed pede.
Curabitur lacinia pulvinar nibh.  Nam a sapien.

** aaa2

** aa3

* b
--8<---------------cut here---------------end--------------->8---

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

end of thread, other threads:[~2019-01-14 23:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-14 22:37 Paste subtree without expanding it / keep it collapsed after pasting Marcelo de Moraes Serpa
2019-01-14 23:30 ` Kyle Meyer

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