macvim-dev / macvim-dev/macvim
Newly created gvim window not focused, existing gvim window is focused instead
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Vim Script
- Star
- 7.9k
- Fork
- 691
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện vấn đề focus với lệnh terminal gvim trên macOS 11.1, đặc biệt khi sử dụng nhiều màn hình và desktop, rồi so sánh hành vi với issue #83. Công việc được hoàn tất khi một cửa sổ gvim mới được tạo luôn nhận focus thay vì một cửa sổ gvim hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- macos, vim
- Lĩnh vực
- desktop, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100