Add option for "pydoc -b" to open new browser window.
未關閉
還沒有人認領這個 Issue。
stdlib
type-feature
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
Feature or enhancement
Proposal:
Currently when one does pydoc -b in the cmd.exe command window, it opens your default browser to browse the documentation locally. If my default browser is already open it adds a tab to that browser.
I'd like the option to browse documentation in a brand new browser window. It's not critical how it's implemented. -b:newwindow might be used to create a new window of the default browser or use whatever standards are already in place.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 pydoc -b 命令的處理入手,追蹤它如何從 cmd.exe 開啟預設瀏覽器。檢查現有的瀏覽器啟動行為及其附近的相關測試,然後定義該選項在支援的瀏覽器中的預期行為;完成的標準是新選項在新的瀏覽器視窗中開啟文件,同時不改變目前的預設行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100