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 摘要。