IDLE: More code_context improvements
オープン
まだ誰も着手していません。
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) - 1fails with depth 0. - E5. test_codecontext is affected by user customization, but should not be.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず issue #77791 とリンクされたコメントを確認し、続いて IDLE のコードコンテキスト表示、メニュー、エディターのエントリーポイントを調査します。test_codecontext を実行するか読み、設定ヘルプとドキュメント参照を確認します。各項目について確認または判断が行われ、文書化された動作と影響を受けるテストが一致していれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- desktop
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100