Add a magic function to paste contents of clipboard

Bug #337951 reported by Fernando Perez
2
Affects Status Importance Assigned to Milestone
IPython
Fix Released
Wishlist
Unassigned

Bug Description

It would be very useful to have a magic function that directly inserts the clipboard contents into the read buffer. See this thread on the mailing list for background and comments by Robert on the implementation:

http://lists.ipython.scipy.org/pipermail/ipython-user/2009-March/006210.html
http://lists.ipython.scipy.org/pipermail/ipython-user/2009-March/006228.html

Note: when implementing this, care must be paid to history synchronization issues. Do we want the history to be updated or not? What about the readline buffer itself?

Revision history for this message
Robert Kern (robert-kern) wrote :

Here's a start:

  https://code.launchpad.net/~robert-kern/ipython/clipboard

It works mostly like %cpaste except for the interaction with readline, of course.

Revision history for this message
Fernando Perez (fdo.perez) wrote :

This was included in the 0.10 release, it's called %paste.

Changed in ipython:
importance: Undecided → Wishlist
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.