[Idle-dev] IDLE shell: Moving prompts to a side-bar

Tal Einat taleinat at gmail.com
Mon Nov 4 02:19:38 EST 2019


On Sun, Nov 3, 2019 at 7:41 PM Beni Cherniavsky-Paskin <
beni.cherniavsky at gmail.com> wrote:

> Note that unlike terminal, multi-line commands in IDLE are already not
> copyable into doctests - one needs to manually add `... ` continuation
> prompts, which is O(n-1) manual work per command; additionally having to
> insert `>>> ` ups that to O(n) which is not much worse.
>

Indeed.


> In an ideal world, it would behave as an html table, allowing dragging
> mouse from sidebar into editing area to select both columns together.  Not
> sure that's possible in Tk.
>

First of all, that *is* possible, but it would be hard.

Second, I was thinking of adding support for selecting a range of lines by
dragging on the sidebar, similar to the new editor window behavior with
line numbers (try it!). It *would* be possible to make this also highlight
the sidebar prompts as selected, and include them when copying. This is
very similar to the above, actually.

Even simpler would be adding a "copy as doctest" context-menu (right-click)
option, which wouldn't require users to discover selection using the
sidebar. IMO this is more obvious and easy to discover, and so better
suited for IDLE.

- Tal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/idle-dev/attachments/20191104/a34f56f3/attachment.html>


More information about the IDLE-dev mailing list