[issue46665] IDLE Windows shortcuts by default

2022-02-06 Thread primexx


New submission from primexx :

In IDLE on Windows, there are certain keyboard shortcut idiosycracies in the 
default configuration. 

For example,

redo is ctrl+shift+z (standard elsewhere) rather than ctrl+y (Microsoft's 
standard)

de-indenting is ctrl+[ rather than shift+tab (also affects multi-line selected 
behaviour)

Request: adjust the defaults based on OS platform and use windows style by 
default on windows

If this is a dupe I apologize. I tried to search for an existing issue but 
wasn't able to find any with the keywords i can think of

--
assignee: terry.reedy
components: IDLE
messages: 412671
nosy: primexx, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE Windows shortcuts by default
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue46665>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46666] IDLE indent guide

2022-02-06 Thread primexx


New submission from primexx :

Request: support indent guide for IDLE in editor window (i.e. not interactive 
shell)

there appears to not be currently support for indent guides in idle

one take is that idle is meant for small scripts and one should seek out a more 
complex IDE if it gets to the point of needing indent lines 
https://stackoverflow.com/q/66231105

i think that there would still be value in indent lines even in IDLE. it is a 
popular IDE for beginners and even in short scripts there can still be 
sufficiently large indented blocks, relatively speaking. it doesn't take that 
much code for indent guides to become helpful.

--
assignee: terry.reedy
components: IDLE
messages: 412672
nosy: primexx, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE indent guide
versions: Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue4>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46665] IDLE Windows shortcuts by default

2022-02-06 Thread primexx


primexx  added the comment:

> I wish it were otherwise, but configuration defaults cannot be changed as 
> some people would not like it and it would badly interact with custom 
> configurations.

that is a good point. perhaps just adding alternate keysets. this is clearly 
not a high priority issue since it can be changed manually.

> Do you have any documentation for you claims?

for redo: 
https://support.microsoft.com/en-us/windows/keyboard-shortcuts-in-windows-dcc61a57-8ff0-cffe-9796-cb9706c75eec

shift + tab does a lot of different things depending on context (e.g. the link 
above, and there are 3 documented behaviour in word alone 
https://support.microsoft.com/en-us/office/keyboard-shortcuts-in-word-95ef89dd-7142-4b50-afb2-f762f663ceb2).
 however, i just tried and it does de-indent in word 365 with just a simple 
text selection (i.e. plain paragraph, not inside tables, etc.). also tried the 
same thing in google docs and it also de-indents text selection. i think you 
could be correct that  this is not actually windows specific, it does seem to 
be fairly common behaviour in the context of text editors anyway.

> Ctrl+y is *not* recognized in Notepad.

yeah notepad is all sorts of messed up. it does not have the usual ctrl+z 
behaviour either.

--

___
Python tracker 
<https://bugs.python.org/issue46665>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46666] IDLE Add indent guide

2022-02-06 Thread primexx


primexx  added the comment:

> Please just select the current development version.  Others can be marked if 
> and when backported

oh sorry about  that!

> Please explain exactly what you want

these dotted lines in the attached screenshot

> What you see in the editor is what is saved (including when running), so any 
> non-code additions have to be removed first.

yes, this would be a pure visual element in the editor, not modifying the 
actual code

> IDLE's code context feature (Options menu) could be considered an indent 
> guide.  In some ways, it is better.

it is very useful indeed, but not quite the same as a persistent visual 
indicator imho

thanks!

--
Added file: https://bugs.python.org/file50608/npp-indent-guide.png

___
Python tracker 
<https://bugs.python.org/issue4>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46666] IDLE Add indent guide

2022-02-11 Thread primexx


primexx  added the comment:

very informative discussion. i'll just say that if it's not possible to do 
purely visually, and it can only be done by modifying the textual content, then 
it probably should not be done at all. preserving the code (and copy+paste 
integrity) is more important. maybe this is actually something to raise with Tk 
first?

--

___
Python tracker 
<https://bugs.python.org/issue4>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45451] IDLE Shell GUI - remove window border

2021-10-12 Thread primexx


New submission from primexx :

Python 3.10 bundled IDLE with a small change in the interactive interpreter 
shell.

Previously, the line indicators ">>>" were in-line with the command line, and a 
long/multi line command would have the same indentation as the indicator which 
was not ideal.

that has been changed in 3.10 so that the line indicators are in a separate 
area as the actual commands so actual commands are always indented 
consistently. this is good.

however, there is now a thick window border separating the line indicator and 
the main window. this is jarring and creates a visual separation that 
disassociates the line indicator from the line itself.

i have on several occasions sat there waiting for something to finish only to 
notice that it has already finished but i missed seeing the next line indicator 
to the left.

the window border creates two separate spaces and is distracting.

an improvement would be to instead of the window border, eliminate it and shade 
the left side with a very light colour (probably even lighter than my photoshop 
in the attached image).

actually, I suggest that the best solution is to remove the window border and 
leave the entire thing contiguously white, with no shading, similar to what it 
looked like previously. except that it now has correct indentation. I think 
this is the most visually cohesive and easy to use.

Attached is an image to illustrate. Again, I suggest the "not shaded" version 
is the best.

--
assignee: terry.reedy
components: IDLE
files: idle310.PNG
messages: 403774
nosy: primexx, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE Shell GUI - remove window border
type: enhancement
versions: Python 3.10
Added file: https://bugs.python.org/file50352/idle310.PNG

___
Python tracker 
<https://bugs.python.org/issue45451>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45451] IDLE Shell GUI - remove window border

2021-10-14 Thread primexx


primexx  added the comment:

of course that's fair, colour schemes are a very preferential thing. the main 
issue really is the border that creates a visual separation between the line 
indicators and the lines that they should be visually associated with. thanks!

--

___
Python tracker 
<https://bugs.python.org/issue45451>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-10-28 Thread primexx


Change by primexx :


--
nosy: +primexx

___
Python tracker 
<https://bugs.python.org/issue40452>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45451] IDLE - modify text frame and widget borders

2021-12-01 Thread primexx


primexx  added the comment:

for what it's worth, Notepad++ is highly configurable. Here's what mine looks 
like with borders set to 0 and some sidebar items disabled. Even though it is 
the same classic theme, it looks a lot better than default.

There's the more substantial point to note that Notepad++ is not interactive, 
the need to have an extremely tight visual coupling between the margin and the 
main body on a line-per-line basis is significantly reduced. Likewise, the line 
numbers separated by a border in the IDLE editor are not really bothersome 
either, it looks natural enough. It only really sticks out in the interactive 
interpreter.

--
Added file: https://bugs.python.org/file50469/Capture.PNG

___
Python tracker 
<https://bugs.python.org/issue45451>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com