How to not convert layout when pasting?

Scott Kostyshak skostysh at lyx.org
Thu Apr 8 16:01:29 UTC 2021


Sometimes I want to copy something from an itemize environment and paste it into a new enumerate item. If I start a new enumerate item and just paste, LyX converts the layout to itemize. My workaround is to type "a" and then paste. This way, the enumerate is preserved. Then I delete the "a". I forget why I developed this habit rather than just pasting, let LyX convert to itemize, then simply convert back to enumerate. Perhaps the nesting was not fixed when I do this instead? In any case, that's not ideal either.

Do others often run into a similar situation? Is there a ticket with ideas for how to improve this? I think I remember racoon opened a ticket but I can't find it.

What is the ideal functionality for you? Perhaps we can collect a few specific use cases?

Use case A:
I copy itemize and paste it into a new enumerate item. I want the enumerate to be preserved.

Use case B:
I copy itemize and paste it into a new enumerate item. I want itemize.

Ideally, we would allow for the user to achieve both use case A and B without needing to explicitly convert the layout. What if "Paste Special > Plain Text" (Ctrl + Shift + V) pasted the text without converting the layout? I don't understand why that's currently not the case. If I remember correctly, when the clipboard item is a LyX item, Ctrl + Shift + V currently functions the same as Ctrl + V, but I'm not sure about that.

If for some reason Ctrl + Shift + V is not the way to go, I suppose an alternative is for the user to signal their intent (between use case A and use case B) when *copying*. i.e., if the user does "Ctrl + Shift + C", this could mean "copy without layout". Then, the host layout dominates. I don't think I like this as much as an alternate paste but perhaps I could get used to this.

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/20210408/d4eb3003/attachment.asc>


More information about the lyx-devel mailing list