Tested with notepad, word, open office, vim. It works.

I am not sure what you tested, but none of them supports middle-button
paste, or selection-set-clipboard.

> Anyway, in my opinion, selection clipboard separation
> is a must and lyx/win should not middle-button-paste from external
> applications under windows, nor from system or internal clipboard.

Why?

I will explain at the end.


I haven't seen any rationale, only opinions. Currently, when I copy
something to the clipboard I cannot paste it by C-v, which is what
the typical Windows user expects. He doesn't expect to have to choose
either
Edit->Paste External Clipboard/Selection->Clipboard as Lines
or
Edit->Paste External Clipboard/Selection->Clipboard as Paragraphs
or
Edit->Paste External Clipboard/Selection->Selection as Lines
or
Edit->Paste External Clipboard/Selection->Selection as Paragraphs

But which one? And what does it mean "as Lines" or "as Paragraphs"?

I agree with you these are non-windows and should be eradicated. Copy
and paste in lyx should use system clipboard.

So, you say that it is wrong having an easy way to paste the contents
of the external clipboard as text using the middle-button.

It is wrong because middle-button-paste should paste selection, not clipboard.

Instead, I say that it is right because it is not C-v, so I don't
expect to be able to paste arbitrary content and because it is handy.

Both selection and clipboard should be able to handle meta data.

Let me try again:

Under *nix, we have concepts of selection (primary) and clipboard. The
accepted behaviors, according to
http://freedesktop.org/wiki/Standards_2fClipboardsWiki, are that

   *  selecting but with no explicit copy should only set PRIMARY,
           never CLIPBOARD
   *  middle mouse button should paste PRIMARY, never CLIPBOARD
   *  explicit cut/copy commands (i.e. menu items, toolbar buttons)
      should always set CLIPBOARD to the currently-selected data
(i.e. conceptually copy PRIMARY to CLIPBOARD)
   * explicit paste commands should paste CLIPBOARD, not PRIMARY

That is to say, we should have clear separation of selection (primary)
and clipboard.

Windows does not have the concept of selection and windows users have
deeply-rooted concepts of C-c, C-v so selection should not set
clipboard. Now, why can not we use middle-button to paste clipboard?
This is because we can implement selection (primary) within lyx and
lyx users expect the same behavior across platforms. That is to say,
middle-button paste only pastes selection (from within lyx).

Hope this makes sense.

Bo

Reply via email to