Robin Dunn wrote:
Christian wrote:
Robin Dunn wrote:
In SPE, which uses pyshell, you can do this by selecting code and
pressing Ctrl+Shift+E. I know this functionality is added in pyshell
as I proposed it Robin and he implemented it. I don't remember if
there is a shortcut associated in pyshell as well.I just read that SHIFT+CTRL+V will do the same in a plain pyshell.
However I
still would prefer if plain pasting worked - on unix with
middlde-mouse, without
even a key stroke. I guess it is the STC that somehow eats the 'return
keys. Any
ideas how to change that?The 'Paste Plus' command also has code that strips off leading
interpreter prompt characters ('>>>' or '...') so it allows you to
copy/paste to/from docs, emails, etc. that may be showing an interactive
interpreter session. It seems to me however that the regular paste
should be able to do the Right Thing for a multi-line text value, at
least when there are no prompts that need stripping. If somebody wants
to check into this and come up with something I'll review a patch.Where do I have to look for? In STC or shell?
I believe Py overrides all of STC's built-in clipboard functionality.
Ok. I found the relevant parts, but as as I am working on linux I'm wondering
how the middle-click paste works. I always supposed that it simulates key
strokes, but it doesn't. Sometimes it seems to me that there are two types of
clipboards on unix, one which is accessed with the ctrl keystrokes and the other
by just selecting and middle clicking. Most programs however obviously can do
both but e.g. emacs can't. Therefore I'd really like to understand how the
middle-click works and how I can intercept that with wxPython.
Regards, Christian