macvim-dev / macvim-dev/macvim
Feature Request: Support Shift-F10 to invoke right-click context menu
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ả
Apologies if this is a duplicate. I searched and couldn't find an existing issue.
Unfortunately, macOS doesn't natively support invoking the right-click context menu from the keyboard as is possible with the menu keyboard button or SHIFT-F10 on Windows and Linux. The solution associated with the accessibility feature to invoke CTRL-5(number pad) is insufficient because it opens the context menu where the mouse pointer is, not where the text cursor is.
However, third party applications such as Eclipse and IntelliJ on macOS do support this feature with custom application code. Eclipse implemented such functionality in this bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=219305
This feature request covers adding this functionality to MacVim via the SHIFT-F10 keyboard combination. To be clear, the behaviour is to open the context menu at the keyboard arrow key cursor location, as opposed to the mouse cursor location. For example, this means when moving a keyboard cursor over a misspelled word, the context menu will display with, among other things, suggested spelling corrections for that word, irrespective of where the mouse pointer happens to be.
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
Issue không nêu rõ tệp mã nguồn, các bài kiểm thử hay các điểm vào. Hãy bắt đầu bằng cách xác định phần xử lý Shift-F10 của MacVim và lệnh gọi menu ngữ cảnh hiện có, sau đó theo dõi cách xác định vị trí con trỏ bàn phím. Công việc được hoàn tất khi Shift-F10 mở menu ngữ cảnh tại vị trí con trỏ bàn phím thay vì con trỏ chuột, kể cả đối với các từ bị viết sai chính tả.
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
- accessibility, desktop
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100