customizable cpaste

Bug #237504 reported by Fernando Perez
2
Affects Status Importance Assigned to Milestone
IPython
Confirmed
Wishlist
Fernando Perez

Bug Description

Idea requested by Joe Harrington:

How hard would it be (and would you be willing) to add a feature to
cpaste that lets you replace strings on package names? This would let
a user tell cpaste to replace "np" with "N", for example, so that they
could cut-and-paste a doc example into their session and not have it
break if they don't use the "np" abbreviation.

Changed in ipython:
assignee: nobody → fdo.perez
importance: Undecided → Wishlist
Revision history for this message
Ville M. Vainio (villemvainio) wrote :

I special cased:

%edit pasted_block

so that it saves the new value for pasted_block. Therefore, you can execute "edit pasted_block" in succession to polish your pasted code. This would make this feature request unnecessary (since of course you can do all the search & replace in your editor as you see fit).

(implemented in my trunk-dev)

Changed in ipython:
status: New → Confirmed
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.