[IPython-dev] can delete prompts in ipythonqt
fperez.net at gmail.com
Thu Sep 2 18:54:34 EDT 2010
On Thu, Sep 2, 2010 at 3:49 PM, MinRK <benjaminrk at gmail.com> wrote:
> I can delete the In [n]: prompts in the ipythonqt window in either of the
> following two ways:
> 1) cursor at empty line before In... and forward-delete (ctrl-D)
> 2) cursor at opening bracket, as in: In [|1]:..., and backspace
> These delete content, and break the input for future commands, due to
> raising 'QTextCursor::setPosition: Position 'X' out of range' errors.
> Works on both Ubuntu and OSX.
Evan, if you scroll up on your IRC log you can find the conversation
where Min showed us this problem. It's pretty serious because it
completely wedges the console, you have to kill it and restart it. So
a user's inadvertent click in the wrong place could easily cost them
the whole session.
I don't know how easy it would be to forbid the cursor from being
placed anywhere other than past the last prompt, while retaining the
ability to highlight prior text for copy/paste purposes.
Preventing that would be great in that it would block a class of
problems I've had occur quite often: pasting in that window thining it
behaves like a terminal, via middle-click, but finding that the pasted
code goes 'inside' the old text, and makes a giant mess.
More for your usability plate :)
More information about the IPython-dev