IDLE: More code_context improvements
まだ誰も着手していません。
評価
調査の方向性
まず issue #77791 とリンクされたコメントを確認し、続いて IDLE のコードコンテキスト表示、メニュー、エディターのエントリーポイントを調査します。test_codecontext を実行するか読み、設定ヘルプとドキュメント参照を確認します。各項目について確認または判断が行われ、文書化された動作と影響を受けるテストが一致していれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 558
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python/cpython のほかの issue
-
docs pending
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
stdlib type-feature
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
stdlib type-feature
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
build type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
stdlib topic-email type-feature
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
zostera/django-bootstrap4#894 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
use-agent-os/agent-os#3276 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NousResearch/hermes-agent#117848 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
zilliztech/memsearch#759 ·