https://bugs.documentfoundation.org/show_bug.cgi?id=139057

--- Comment #20 from [email protected] ---
(In reply to Telesto from comment #19)
> Should the images/shapes be included if a single paragraph is selected
> (in theory), to be included in the move (drag drop) or cut paste by default.
> I find the current behaviour unintuitive.
"Intuition" here may depend on your understanding of the intended design.

Consider these speculations/observations:

1. Text selection is doing just that. Selecting text, not "paragraph" (in the
technical meaning/implementation of paragraph).

So drag and drop is moving the selected "text", but it is not possible to
select beyond the first character to get the "to paragraph" anchor (or "to
character" anchor if placed at paragraph [or word] start or paragraph [or word]
end (presumably because the anchor is anchored to "paragraph start" or "end of
paragraph"). Because the anchor cannot be selected in these positions, the
anchored objects will not be included in the drag-and-drop.

2. When "paragraphs" (as opposed to "text") are moved, then "to paragraph"
anchor (or "to character" anchor at start or end of paragraph) is included (so
anchored objects move).

For example, when you select two paragraphs (and also necessary to mention that
the first paragraph has the anchors), you are now selecting the "paragraph" 
(not only the text), which means that the anchors are also selected/included as
part of the paragraph.  Now the objects move.  (and actually, you only need to
select the first character of the second paragraph, because the issue is to
select the "paragraph" with the anchors (not just the "text" in the paragraph).

(note that if the anchors are on the second paragraph, then drag-and-drop will
fail to move the objects, because only the text in the second paragraph is
selected, not the "paragraph")

As noted before, Crtl+Alt+Up/Down will also move the anchored objects with the
text, because that command is moving the "paragraph" (even if the appearance
from user POV is the same as drag-and-drop).

In short, "to paragraph" anchor must be understood literally as "that paragraph
to which the anchor appears". Selecting and moving the text in the paragraph is
moving the text, not the paragraph, so the anchor remains with the paragraph.

>From user POV (and not knowing the technical implementation), I would expect
that selecting the entire text content of a paragraph would also include any
anchors, so that moving the text would also move the anchors.  But maybe there
is a good argument/reason for leaving the anchor with the paragraph. In any
event, once the actual behavior is understood, then it seems "manageable."

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to