Skip to content

IDLE: More code_context improvements #95352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
10 tasks
terryjreedy opened this issue Jul 28, 2022 · 0 comments
Open
10 tasks

IDLE: More code_context improvements #95352

terryjreedy opened this issue Jul 28, 2022 · 0 comments
Labels
stdlib Python modules in the Lib dir

Comments

@terryjreedy
Copy link
Member

terryjreedy commented Jul 28, 2022

Continuation of #77791. Below is #77791 (comment) with done items removed. Items need to be checked or decided on if still relevant. New items should continue with next new number on original.

Docs:

  • D3

Menu

  • M4: Shortcut for CC? (new)

Code Context Display

  • C1. Add vertical scrollbar if lines > maxlines (12).
  • C2. Add horizontal scrollbar if add to text (13).
  • C3: Make 'Show' show the context for the current top visible line (new).
  • C5

Internal Changes

  • I3

External Changes

  • E2. Navigate by blocks in editor (14).
  • E4. Max context lines = 0 is treated as infinity. For depth 0, "self.info[-self.context_depth:]" is whole slice. I don't remember if this is intended (if one does not want context, don't toggle it on), but it is not documented in settings help or doc section. In any case, offset = max(1, lines - self.context_depth) - 1 fails with depth 0.
  • E5. test_codecontext is affected by user customization, but should not be.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
Status: Todo
Development

No branches or pull requests

2 participants