Newly created gvim window not focused, existing gvim window is focused instead
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- macos, vim
研究方向
首先,在 macOS 11.1 上使用終端機 gvim 命令重現焦點問題,尤其要測試使用多個顯示器和桌面的情況,並將行為與 issue #83 進行比較。當新建立的 gvim 視窗能夠始終取得焦點,而不是既有的 gvim 視窗時,這項工作就完成了。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
When creating a new gvim window via terminal gvim command, sometimes the new pop-up window doesn't gain focus, instead, the pre-existing gvim window is focused. This causes minor annoyance because user would intuitively think he/she is typing into the new window without checking.
I suspect it has something to do with multi-monitor environment and each monitor has a separate desktop number. Sometimes I typed gvim in the terminal and the new gvim window was opened in another monitor. And in that case often the wrong window was focused. Maybe macvim will focus window instance on the desktop with lowest index number?
Not sure if this is related to #83.
I didn't find out the pattern to reliably reproduce the behavior yet.
To Reproduce
Detailed steps to reproduce the behavior:
- Open a terminal.
- Type
gvim. - A new gvim instance popped up.
- But the original gvim instance is focused.
Expected behavior
The new gvim instance is focused.
Environment (please complete the following information):
- Vim version: 8.2.2164
- OS: macOS 11.1
- Terminal: iTerm2
- 主要語言
- Vim Script
- 星號
- 7.9k
- 分支
- 691
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
macvim-dev/macvim 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
macvim-dev/macvim#1697 · 5 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1658 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1657 ·
-
難度 2/5 1-3 小時 新手友好度 76/100
macvim-dev/macvim#1655 ·
-
難度 2/5 半天 新手友好度 72/100
macvim-dev/macvim#1653 ·
查看 macvim-dev/macvim 的全部 Issue
相似的 Issue
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 75/100
alexgorbatchev/simple-ptt#11 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
bug good first issue multicut serialization
難度 2/5 1-3 小時 新手友好度 70/100
-
accepted bug via-triage
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
seagle0128/doom-modeline#835 ·