On 12/09/2018 16:12, Jean-Marc Lasgouttes wrote:
Le 12/09/2018 à 16:01, Daniel a écrit :
I am not so sure about the original paragraph becoming default layout. I guess it is not uncommon to replace the content of a paragraph by something else while cutting its content before the replacement. (Libre office, for example, does not set the paragraph to default either.)

Furthermore, I guess the only difference between delete and cut should be that the latter moves stuff into the clipboard. At least that is how it works in my experience.

In some sense, the semantics of your original proposal is "selecting the whole paragraph selects the layout too". In this sense, the layout could be deleted with Delete too.

I understand this might be too much or inconvenient at times, but we should definitely not go towards complicated semantics that are supposed to do the right thing according to what we believe the user is doing. I really dislike when I have to fight against office 2010 "guessing" what I am wanting to do.

My point is that I would prefer to have a semantics of what happens that can be explained on one sentence rather than many ad-hoc behaviors. It is like the code that removes leading spaces of paragraphs of #10503. Somebody probably had a use case in mind when implementing what seems so stupid to us today.

There might be a misunderstanding. The behaviour I suggest comes from Libre Writer not MS Office. And, if I see it correctly, it can be explained in one sentence:

"Just as in Libre Office."

Just kidding ;)

Maybe,

"Pasting changes the format if and only if the pasted content is a full paragraph and the target is an empty paragraph."

Deleting/cutting stays as it is in LyX (and Libre Office):

"Deleting/cutting a full paragraph leaves the layout untouched."

I find it quite intuitive.

/Daniel

Reply via email to