[IPython-dev] can delete prompts in ipythonqt
Thu Sep 2 19:02:15 CDT 2010
Min: I will fix these issues tomorrow. At least one of these is a
Fernando: I thought I had hijacked all the possible ways to paste
code, but I forgot about middle click (I never use that one). I will
also fix this tomorrow.
In general, there is a large amount of code in place to ensure that
the user does not delete or modify text that should be static, but I'm
not surprised that there are still ways for the determined user to
break things. Eventually, all the holes will be plugged, but this is
the price you pay for using a generic text widget to implement a
terminal interface. (Of course, there are also many advantages to not
using a true terminal widget.)
On Thu, Sep 2, 2010 at 5:54 PM, Fernando Perez <email@example.com> wrote:
> On Thu, Sep 2, 2010 at 3:49 PM, MinRK <firstname.lastname@example.org> 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 :)
> IPython-dev mailing list
More information about the IPython-dev