How to not convert layout when pasting?
Scott Kostyshak
skostysh at lyx.org
Fri Apr 9 15:43:06 UTC 2021
On Fri, Apr 09, 2021 at 05:30:28PM +0200, Jean-Marc Lasgouttes wrote:
> Le 09/04/2021 à 16:58, Scott Kostyshak a écrit :
> > Just to make sure I understand, according to this copy-based mechanism,
> > suppose I have the following in an itemize paragraph:
> >
> > * This is a paragraph.
> >
> > If I copy just "This is", then when I paste into the empty enumerate
> > item it would not be converted to itemize and enumerate would be
> > preserved. On the other hand if I copy the full "This is a paragraph."
> > then it would be converted. Do I understand correctly? This is
> > interesting and I haven't thought about this possibility. I would have
> > to pay more attention to when this issue comes up for me. I think it
> > would cover most of the cases.
>
> Note that the difficulty with that is that the clipboard does not keep the
> information of whether the paragraph was complete. But it could be possible
> to reset the layout in the cliboard itself at copy time.
I see. I think I like that idea, although I would need to think more and
test to be sure.
If there is interest, we could do a poll on LyX users for a couple of
use cases to see what is expected. I do not have time (and I do not know
this part of the code) to work on a patch though.
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210409/b2d53919/attachment.asc>
More information about the lyx-devel
mailing list