macvim-dev / macvim-dev/macvim
Feature Request: Support Shift-F10 to invoke right-click context menu
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Vim Script
- Sterne
- 7.9k
- Forks
- 691
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Das Issue nennt keine Quelldateien, Tests oder Einstiegspunkte. Beginne damit, MacVims Verarbeitung von Shift-F10 und den bestehenden Aufruf des Kontextmenüs zu finden, und verfolge anschließend, wie die Position des Tastaturcursors bestimmt wird. Erledigt ist die Aufgabe, wenn Shift-F10 das Kontextmenü an der Position des Tastaturcursors statt am Mauszeiger öffnet, auch bei falsch geschriebenen Wörtern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- macos, vim
- Bereich
- accessibility, desktop
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100