On Sun, Nov 3, 2019 at 7:41 PM Beni Cherniavsky-Paskin < beni.cherniav...@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
_______________________________________________ IDLE-dev mailing list IDLE-dev@python.org https://mail.python.org/mailman/listinfo/idle-dev