Hello,
copying and pasting from external applications is a real PITA
(especially on Windows) because there are no key bindings available.
Therefore, the attached patch (for LyX 1.4) adds bindings for command
"paste-primary-selection" (BTW: What does "primary selection" mean in
this context?)
When I backported the bindings for LyX 1.3, I noticed that one key
combination was already used for "paste-layout", a function removed in
LyX 1.4 due to implementation problems. Does anybody know if this
function works reliable with 1.3? (I was a bit surprised that it does
not copy properties like "centered") Otherwise, I would propose to
substitute the key binding.
Lars, am I allowed to commit the patch?
Michael
Index: lib/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/ChangeLog,v
retrieving revision 1.729
diff -u -r1.729 ChangeLog
--- lib/ChangeLog 10 Aug 2005 12:24:35 -0000 1.729
+++ lib/ChangeLog 26 Aug 2005 12:15:55 -0000
@@ -1,3 +1,14 @@
+2005-08-25 Michael Schmitt <[EMAIL PROTECTED]>
+
+ * bind/cua.bind:
+ * bind/mac.bind:
+ * bind/sciword.bind: bind "paste-primary-selection (paragraph)"
+
2005-08-10 Martin Vermeer <[EMAIL PROTECTED]>
* memoir.layout: change order of includes to fix bug 1971
Index: lib/bind/cua.bind
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/bind/cua.bind,v
retrieving revision 1.33
diff -u -r1.33 cua.bind
--- lib/bind/cua.bind 9 May 2005 18:28:29 -0000 1.33
+++ lib/bind/cua.bind 26 Aug 2005 12:15:57 -0000
@@ -69,6 +69,8 @@
\bind "C-c" "copy"
\bind "C-x" "cut"
\bind "C-v" "paste"
+\bind "M-S-v" "primary-selection-paste"
+\bind "C-S-v" "primary-selection-paste paragraph"
\bind "C-z" "undo"
\bind "C-S-Z" "redo"
Index: lib/bind/mac.bind
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/bind/mac.bind,v
retrieving revision 1.8
diff -u -r1.8 mac.bind
--- lib/bind/mac.bind 9 May 2005 18:28:29 -0000 1.8
+++ lib/bind/mac.bind 26 Aug 2005 12:15:58 -0000
@@ -58,6 +58,8 @@
\bind "C-c" "copy"
\bind "C-x" "cut"
\bind "C-v" "paste"
+\bind "M-S-v" "primary-selection-paste"
+\bind "C-S-v" "primary-selection-paste paragraph"
\bind "C-z" "undo"
\bind "C-S-Z" "redo"
Index: lib/bind/sciword.bind
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/bind/sciword.bind,v
retrieving revision 1.25
diff -u -r1.25 sciword.bind
--- lib/bind/sciword.bind 20 Feb 2004 10:32:42 -0000 1.25
+++ lib/bind/sciword.bind 26 Aug 2005 12:15:58 -0000
@@ -105,6 +105,8 @@
\bind "C-u" "font-underline"
\bind "C-v" "paste"
+\bind "M-S-v" "primary-selection-paste"
+\bind "C-S-v" "primary-selection-paste paragraph"
\bind "C-w" "buffer-close"
\bind "C-x" "cut"
\bind "C-z" "undo"