This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Ctrl+Shift block marking by words
Type: Stage:
Components: IDLE Versions:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: kbk Nosy List: kbk, taleinat, zorkin
Priority: normal Keywords: patch

Created on 2007-05-01 17:26 by zorkin, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg31924 - (view) Author: zorkin (zorkin) Date: 2007-05-01 17:26
When I mark a block with ctrl+shift pressed, pressing the right arrow with cursor before the last word on the line marks this word plus whitespace till the first word on next line.

I think this behaviour is wrong - it should stop at the end of line.
msg31925 - (view) Author: zorkin (zorkin) Date: 2007-05-01 17:39
And another thing: if the cursor is at the start of line and I press ctrl + right, it moves to the start of the second word, not the first one, like it should.
msg31926 - (view) Author: Tal Einat (taleinat) * (Python committer) Date: 2007-05-24 19:15
It shouldn't stop at the end of the line - for that, press Shift+End. But I'm guessing you meant that you think it should stop at the end of the word.

Both phenomena you describe are the result of the same behavior. Pressing Ctrl+Right or Ctrl+Left jumps to the beginning of the next word in the relevant direction. This is the default behavior of the Tk Text widget, which I am liking less and less as time goes by. (issues with selections, 'end-1c', ...)

What you ask has already been suggested to me: that it might be useful, and perhaps more intuitive, to have Ctrl+Right jump to the end of words instead of beginnings.

I'll bring this up on the IDLE-dev mailing list as a possible feature.
msg56302 - (view) Author: Kurt B. Kaiser (kbk) * (Python committer) Date: 2007-10-10 00:42
Ctrl-
right 
does jump 
to the 
ends.  
Behaviour 
is
slightly 
strange, 
but 
useful.  
Let Tk 
handle it.
History
Date User Action Args
2022-04-11 14:56:24adminsetgithub: 44917
2007-10-10 00:42:30kbksetstatus: open -> closed
resolution: works for me
messages: + msg56302
keywords: + patch
2007-05-01 17:26:11zorkincreate