python / python/cpython

IDLE: More code_context improvements

未关闭
#95,352 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

topic-IDLE type-feature
主要语言
Python
星标
77.2k
派生
36k
PR 合并指标
PR 指标待抓取

描述

Continuation of #77791. Below is https://github.com/python/cpython/issues/77791#issuecomment-1093786893 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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 issue #77791 及其链接的评论开始,然后检查 IDLE 的代码上下文显示、菜单和编辑器入口点。运行或阅读 test_codecontext,并审查设置帮助和文档引用。每个列出的项目都已检查或作出决定,并且文档中描述的行为与受影响的测试一致,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
desktop
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。